module Opulent::Utils
@Utils
Constants
- ESCAPE_HTML
Used by escape_html
- ESCAPE_HTML_PATTERN
Pattern matching for html escape characters
- INTERPOLATION_PATTERN
Ruby interpolation pattern
Public Class Methods
escape(html)
click to toggle source
Returns an escaped copy of `html`.
@param html [String] The string to escape @return [String] The escaped string
# File lib/opulent/utils.rb, line 28 def escape(html) EscapeUtils.escape_html html.to_s.chomp, false end