From 9147613ce09710e70790ac45d3b20c3ef6c1fa46 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 11 Dec 2011 15:56:21 -0700 Subject: Remove duplicate html_escape docs --- .../lib/active_support/core_ext/string/output_safety.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'activesupport/lib/active_support/core_ext/string/output_safety.rb') diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb index c58ea16b44..c6d861d124 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -26,16 +26,7 @@ class ERB end end else - # A utility method for escaping HTML tag characters. - # This method is also aliased as h. - # - # 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 > 0 & a < 10? - def html_escape(s) + def html_escape(s) #:nodoc: s = s.to_s if s.html_safe? s -- cgit v1.2.3