Method: ActiveSupport::CoreExt::ERBUtil#unwrapped_html_escape
- Defined in:
- activesupport/lib/active_support/core_ext/erb/util.rb
#unwrapped_html_escape ⇒ Object
HTML escapes strings but doesn’t wrap them with an ActiveSupport::SafeBuffer. This method is not for public consumption! Seriously! :nodoc:
19 20 21 22 23 24 25 26 |
# File 'activesupport/lib/active_support/core_ext/erb/util.rb', line 19 def html_escape(s) # :nodoc: s = s.to_s if s.html_safe? s else super(s) end end |