Module: EscapeUtils::HtmlSafety
- Included in:
- CGI, ERB::Util, Haml::Helpers, Rack::Utils
- Defined in:
- lib/escape_utils/html_safety.rb
Instance Method Summary collapse
Instance Method Details
#_escape_html(s) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/escape_utils/html_safety.rb', line 4 def _escape_html(s) if s.html_safe? s.to_s.html_safe else EscapeUtils.escape_html(s.to_s).html_safe end end |