aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorMax Felsher <maxfelsher@users.noreply.github.com>2017-10-19 22:34:02 -0400
committerGitHub <noreply@github.com>2017-10-19 22:34:02 -0400
commit065be937f27c25bc7d23e0dd35ad4aa84818b167 (patch)
tree0596760c5ad0948776910d5f6bd31759337f3dcd /activesupport
parenta52ff1b0848e8bb2310738ec7b762b82edbbfcb2 (diff)
downloadrails-065be937f27c25bc7d23e0dd35ad4aa84818b167.tar.gz
rails-065be937f27c25bc7d23e0dd35ad4aa84818b167.tar.bz2
rails-065be937f27c25bc7d23e0dd35ad4aa84818b167.zip
Remove obsolete documentation [ci skip]
Instructions to use `h` or `html_escape` in ERB templates were added to `actionpack/lib/action_view/template_handlers/erb.rb` in a1b0349 (Rails 2.1), but ERB has automatically escaped values since Rails 3.
Diffstat (limited to 'activesupport')
-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)