Fix typo: change 'noreferer' to 'noreferrer'

as the correct rel attribute in external links.
This commit is contained in:
Andreas Geyer-Schulz 2020-01-25 20:10:23 +01:00
parent ac3df158f7
commit f6f23ed0ee
No known key found for this signature in database
GPG key ID: 1BB55B0F19A3045A
3 changed files with 11 additions and 11 deletions

View file

@ -1,5 +1,5 @@
Sanitize::Config::OSM = Sanitize::Config::RELAXED.dup
Sanitize::Config::OSM[:elements] -= %w[div style]
Sanitize::Config::OSM[:add_attributes] = { "a" => { "rel" => "nofollow noopener noreferer" } }
Sanitize::Config::OSM[:add_attributes] = { "a" => { "rel" => "nofollow noopener noreferrer" } }
Sanitize::Config::OSM[:remove_contents] = %w[script style]