7ae94feef35b276c1dc6a7b1d49fd60c0c316d1e
[rails.git] / config / initializers / sanitize.rb
1 Sanitize::Config::OSM = Sanitize::Config::RELAXED.dup
2
3 Sanitize::Config::OSM[:elements] -= %w(div style)
4 Sanitize::Config::OSM[:add_attributes] = { 'a' => { 'rel' => 'nofollow' } }
5 Sanitize::Config::OSM[:remove_contents] = %w(script style)