Permalink
Browse files

Remove duplicate html_escape docs

  • Loading branch information...
1 parent 63cd943 commit 9147613ce09710e70790ac45d3b20c3ef6c1fa46 @jeremy jeremy committed Dec 11, 2011
Showing with 1 addition and 10 deletions.
  1. +1 −10 activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -26,16 +26,7 @@ def html_escape(s)
end
end
else
- # A utility method for escaping HTML tag characters.
- # This method is also aliased as <tt>h</tt>.
- #
- # In your ERB templates, use this method to escape any unsafe content. For example:
- # <%=h @person.name %>
- #
- # ==== Example:
- # puts html_escape("is a > 0 & a < 10?")
- # # => is a &gt; 0 &amp; a &lt; 10?
- def html_escape(s)
+ def html_escape(s) #:nodoc:
s = s.to_s
if s.html_safe?
s

0 comments on commit 9147613

Please sign in to comment.