openstreetmap-website/config/initializers/sanitize.rb
2015-02-20 19:47:26 +00:00

5 lines
240 B
Ruby

Sanitize::Config::OSM = Sanitize::Config::RELAXED.dup
Sanitize::Config::OSM[:elements] -= %w(div style)
Sanitize::Config::OSM[:add_attributes] = { "a" => { "rel" => "nofollow" } }
Sanitize::Config::OSM[:remove_contents] = %w(script style)