Use a better HTML sanitizer that makes sure the HTML is well formed and

can add rel="nofollow" to links.
This commit is contained in:
Tom Hughes 2010-03-06 15:38:13 +00:00
parent 30ae9fb928
commit 94f19ce3b3
3 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,3 @@
Sanitize::Config::OSM = Sanitize::Config::RELAXED.dup
Sanitize::Config::OSM[:add_attributes] = { 'a' => { 'rel' => 'nofollow' } }