v4.2.7 -
Show latest stable
-
1 note
Constants
JSON_ESCAPE_REGEXP = /[\u2028\u2029&><]/u
HTML_ESCAPE_ONCE_REGEXP = /["><']|&(?!([a-zA-Z]+|(#\d+)|(#[xX][\dA-Fa-f]+));)/
HTML_ESCAPE_REGEXP = /[&"'><]/
JSON_ESCAPE = { '&' => '\u0026', '>' => '\u003e', '<' => '\u003c', "\u2028" => '\u2028', "\u2029" => '\u2029' }
HTML_ESCAPE = { '&' => '&', '>' => '>', '<' => '<', '"' => '"', "'" => ''' }