Skip to content

Commit

Permalink
Escape characters correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
rizwanreza committed Nov 21, 2010
1 parent 3dd1c8c commit b6c7b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdoc/generator/paddle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def identifier

private
def h string
string.strip.gsub(/<pre>\s*<\/pre>/, '').gsub(/&/, '&amp;').gsub(/<</, '&lt;&lt;')
string.strip.gsub(/<pre>\s*<\/pre>/, '').gsub(/& /, '&amp; ').gsub(/<</, '&lt;&lt;')
end

def copy_images
Expand Down

0 comments on commit b6c7b43

Please sign in to comment.