Restore removal of div and style elements when sanitizing HTML

This commit is contained in:
Tom Hughes 2015-01-10 17:37:15 +00:00
parent dc5c3d6eea
commit 428f379eef

View file

@ -1,4 +1,5 @@
Sanitize::Config::OSM = Sanitize::Config::RELAXED.dup
Sanitize::Config::OSM[:elements] -= [ 'div', 'style' ]
Sanitize::Config::OSM[:add_attributes] = { 'a' => { 'rel' => 'nofollow' } }
Sanitize::Config::OSM[:remove_contents] = [ 'script', 'style' ]