2 # If true, use ISO 8601 format for dates and times. Otherwise, fall back to the Active Support legacy format.
3 mattr_accessor
:use_standard_json_time_format
6 def escape_html_entities_in_json
7 @escape_html_entities_in_json
10 def escape_html_entities_in_json
=(value
)
11 ActiveSupport
::JSON::Encoding.escape_regex
= \
13 /[\010\f\n\r\t"\\><&]/
17 @escape_html_entities_in_json = value
22 require 'active_support/json/encoding'
23 require 'active_support/json/decoding'