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:
parent
30ae9fb928
commit
94f19ce3b3
3 changed files with 8 additions and 0 deletions
3
config/initializers/sanitize.rb
Normal file
3
config/initializers/sanitize.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
Sanitize::Config::OSM = Sanitize::Config::RELAXED.dup
|
||||
|
||||
Sanitize::Config::OSM[:add_attributes] = { 'a' => { 'rel' => 'nofollow' } }
|
Loading…
Add table
Add a link
Reference in a new issue