Type:
Module
Constants:
HTML_ESCAPE : { '&' => '&amp;', '>' => '&gt;', '<' => '&lt;', '"' => '&quot;', "'" => '&#39;' }
JSON_ESCAPE : { '&' => '\u0026', '>' => '\u003e', '<' => '\u003c', "\u2028" => '\u2028', "\u2029" => '\u2029' }
HTML_ESCAPE_REGEXP : /[&"'><]/
HTML_ESCAPE_ONCE_REGEXP : /["><']|&(?!([a-zA-Z]+|(#\d+)|(#[xX][\dA-Fa-f]+));)/
JSON_ESCAPE_REGEXP : /[\u2028\u2029&><]/u
html_escape

html_escape(s) Class Public methods A utility method for escaping

2015-06-20 00:00:00
h

h(s) Class Public methods Alias for:

2015-06-20 00:00:00
html_escape_once

html_escape_once(s) Class Public methods A utility method for escaping

2015-06-20 00:00:00
json_escape

json_escape(s) Class Public methods A utility method for escaping

2015-06-20 00:00:00