Permalink
Browse files

revert to old html safety behavior

  • Loading branch information...
1 parent 6bb038c commit 8648ac4b6fc445dc9ea6d4227bc5832ac82deeb0 @brianmario committed Feb 28, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −1 lib/escape_utils/html_safety.rb
  2. +0 −4 test/html_safety_test.rb
@@ -5,7 +5,7 @@ def _escape_html(s)
if s.html_safe?
s.to_s.html_safe
else
- EscapeUtils.escape_html_as_html_safe(s.to_s)
+ EscapeUtils.escape_html(s.to_s).html_safe
end
end
else
View
@@ -21,10 +21,6 @@ def to_s
end
class String
- def html_safe?
- @html_safe
- end
-
def html_safe
TestSafeBuffer.new(self)
end

0 comments on commit 8648ac4

Please sign in to comment.