Allow `rel` in sanitized links
This commit is contained in:
parent
8bbc9c72c1
commit
f871ab45e8
|
@ -1,7 +1,7 @@
|
|||
EVIL_TAGS = {
|
||||
elements: %w(blockquote a p i strong em del pre code table tr td th br ul ol li hr),
|
||||
attributes: {
|
||||
'a' => %w(href target)
|
||||
'a' => %w(href target rel)
|
||||
},
|
||||
protocols: {
|
||||
'a' => { 'href' => ['http', 'https', :relative] }
|
||||
|
|
Loading…
Reference in New Issue