Skip to content

Commit

Permalink
Since escape_html_entities_in_json was moved to 3-2-stable, make it t…
Browse files Browse the repository at this point in the history
…rue in AS, closes #6287
  • Loading branch information
josevalim committed May 14, 2012
1 parent 1839ecd commit c13a3f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/json/encoding.rb
Expand Up @@ -136,7 +136,7 @@ def escape(string)
end

self.use_standard_json_time_format = true
self.escape_html_entities_in_json = false
self.escape_html_entities_in_json = true
self.encode_big_decimal_as_string = true
end
end
Expand Down
Expand Up @@ -44,9 +44,6 @@ class Application < Rails::Application
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
# Enable escaping HTML in JSON. The default is false.
# config.active_support.escape_html_entities_in_json = true
# Use SQL instead of Active Record's schema dumper when creating the database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
# like if you have constraints or database-specific column types.
Expand Down

0 comments on commit c13a3f0

Please sign in to comment.