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:
18 19 20 21 22 23 24 25 |
# File 'activesupport/lib/active_support/core_ext/erb/util.rb', line 18 def html_escape(s) # :nodoc: s = s.to_s if s.html_safe? s else super(ActiveSupport::Multibyte::Unicode.tidy_bytes(s)) end end |