module
ActiveSupport::JSON::Encoding
v8.1.1 -
Show latest stable
No documentation available for this module.
Constants
ESCAPED_CHARS = {\nU2028 => '\\u2028'.b,\nU2029 => '\\u2029'.b,\n">".b => '\\u003e'.b,\n"<".b => '\\u003c'.b,\n"&".b => '\\u0026'.b,\n}
FULL_ESCAPE_REGEX = Regexp.union(*ESCAPED_CHARS.keys)
HTML_ENTITIES_REGEX = Regexp.union(*(ESCAPED_CHARS.keys - [U2028, U2029]))
JS_SEPARATORS_REGEX = Regexp.union(U2028, U2029)
U2028 = -"\\u2028".b
U2029 = -"\\u2029".b
Files
- activesupport/lib/active_support/json/encoding.rb