aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-10-20 17:09:07 +0900
committerGitHub <noreply@github.com>2017-10-20 17:09:07 +0900
commit158f67d94c027c7f4516b000f90ec10c1335a86c (patch)
treef2d9020a69c818b0b5ebd0b12b8b2e83353d0b52
parent814e59cfe29927386e4b59b6bb008b679179f1d1 (diff)
parent065be937f27c25bc7d23e0dd35ad4aa84818b167 (diff)
downloadrails-158f67d94c027c7f4516b000f90ec10c1335a86c.tar.gz
rails-158f67d94c027c7f4516b000f90ec10c1335a86c.tar.bz2
rails-158f67d94c027c7f4516b000f90ec10c1335a86c.zip
Merge pull request #30936 from maxfelsher/html-escape-doc-fix
Remove obsolete documentation for html_escape [ci skip]
-rw-r--r--activesupport/lib/active_support/core_ext/string/output_safety.rb3
1 files changed, 0 insertions, 3 deletions
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 600b41da10..873213e6d7 100644
--- a/activesupport/lib/active_support/core_ext/string/output_safety.rb
+++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -15,9 +15,6 @@ class ERB
# 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 %>
- #
# puts html_escape('is a > 0 & a < 10?')
# # => is a &gt; 0 &amp; a &lt; 10?
def html_escape(s)