Permalink
Browse files

Add silence_warnings block (GH #3927)

  • Loading branch information...
1 parent 78de996 commit 8ab52d2aef9b2d7c5811830622d66210827505b9 @kennyj committed Dec 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -20,7 +20,7 @@ def html_escape(s)
if s.html_safe?
s
else
- s.gsub(/[&"><]/n) { |special| HTML_ESCAPE[special] }.html_safe
+ silence_warnings { s.gsub(/[&"><]/n) { |special| HTML_ESCAPE[special] }.html_safe }
end
end

0 comments on commit 8ab52d2

Please sign in to comment.