Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 9239

Show
Ignore:
Timestamp:
04/08/08 03:47:08 (8 months ago)
Author:
rick
Message:

set ActiveSupport.escape_html_entities_in_json = false for new rails apps

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/configs/initializers/new_rails_defaults.rb

    r9204 r9239  
    1010# Use ISO 8601 format for JSON serialized times and dates 
    1111ActiveSupport.use_standard_json_time_format = true 
     12 
     13# Don't escape HTML entities in JSON, leave that for the #json_escape helper 
     14# if you're including raw json in an HTML page. 
     15ActiveSupport.escape_html_entities_in_json = false