Permalink
Browse files

set ActiveSupport.escape_html_entities_in_json = false for new rails …

…apps

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 605196c commit 7e94cf7f4d4c865a84cf835349bdb51c5e71a842 @technoweenie technoweenie committed Apr 8, 2008
Showing with 5 additions and 1 deletion.
  1. +5 −1 railties/configs/initializers/new_rails_defaults.rb
@@ -8,4 +8,8 @@
ActiveRecord::Base.include_root_in_json = true
# Use ISO 8601 format for JSON serialized times and dates
-ActiveSupport.use_standard_json_time_format = true
+ActiveSupport.use_standard_json_time_format = true
+
+# Don't escape HTML entities in JSON, leave that for the #json_escape helper
+# if you're including raw json in an HTML page.
+ActiveSupport.escape_html_entities_in_json = false

0 comments on commit 7e94cf7

Please sign in to comment.