From 065be937f27c25bc7d23e0dd35ad4aa84818b167 Mon Sep 17 00:00:00 2001 From: Max Felsher Date: Thu, 19 Oct 2017 22:34:02 -0400 Subject: 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. --- activesupport/lib/active_support/core_ext/string/output_safety.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'activesupport') 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 h. # - # 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 > 0 & a < 10? def html_escape(s) -- cgit v1.2.3