Skip to content

Commit

Permalink
Merge pull request rails#3123 from avakhov/patch-5-remove-superfluous…
Browse files Browse the repository at this point in the history
…-to-s

remove superfluous to_s in ERB::Util.html_escape
  • Loading branch information
spastorino committed Sep 24, 2011
1 parent 6cb0d35 commit 42c2b24
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -20,7 +20,7 @@ def html_escape(s)
if s.html_safe?
s
else
s.to_s.gsub(/&/, "&amp;").gsub(/\"/, "&quot;").gsub(/>/, "&gt;").gsub(/</, "&lt;").html_safe
s.gsub(/&/, "&amp;").gsub(/\"/, "&quot;").gsub(/>/, "&gt;").gsub(/</, "&lt;").html_safe
end
end

Expand Down

0 comments on commit 42c2b24

Please sign in to comment.