Restore removal of div and style elements when sanitizing HTML
This commit is contained in:
parent
dc5c3d6eea
commit
428f379eef
1 changed files with 1 additions and 0 deletions
|
@ -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' ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue