Module: Rack::Utils
- Defined in:
- lib/escape_utils/html/rack.rb
Class Method Summary collapse
Class Method Details
.escape_html(html) ⇒ Object
3 4 5 |
# File 'lib/escape_utils/html/rack.rb', line 3 def escape_html(html) ::EscapeUtils::HtmlSafety.escape_once(html) { |s| CGI.escapeHTML(s) } end |