Escape any characters special to HTML and encode any characters special to Markdown in a copy of the given str and return it.
Source Code
# File bluecloth.rb, line 1027 def encode_code( str, rs ) str.gsub( %r{&}, '&' ). gsub( %r{<}, '<' ). gsub( %r{>}, '>' ). gsub( CodeEscapeRegexp ) {|match| EscapeTable[match][:md5]} end
<code/>and<pre/>for code samples.