class ActiveSupport::JSON::Encoding::JSONGemEncoder::EscapedString
:nodoc:
This class wraps all the strings we see and does the extra escaping
def to_json(*)
This class wraps all the strings we see and does the extra escaping
def to_json(*) if Encoding.escape_html_entities_in_json super.gsub ESCAPE_REGEX_WITH_HTML_ENTITIES, ESCAPED_CHARS else super.gsub ESCAPE_REGEX_WITHOUT_HTML_ENTITIES, ESCAPED_CHARS end end
def to_s
def to_s self end