Method: Formular::HtmlEscape#html_escape

Defined in:
lib/formular/html_escape.rb

#html_escape(string) ⇒ Object

A utility method for escaping HTML tag characters.



10
11
12
# File 'lib/formular/html_escape.rb', line 10

def html_escape(string)
  string.to_s.gsub(HTML_ESCAPE_REGEXP, HTML_ESCAPE)
end