Allow `rel` in sanitized links

This commit is contained in:
Andreas Nedbal 2021-12-31 22:23:45 +01:00 committed by Andreas Nedbal
parent 8bbc9c72c1
commit f871ab45e8
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
EVIL_TAGS = { EVIL_TAGS = {
elements: %w(blockquote a p i strong em del pre code table tr td th br ul ol li hr), elements: %w(blockquote a p i strong em del pre code table tr td th br ul ol li hr),
attributes: { attributes: {
'a' => %w(href target) 'a' => %w(href target rel)
}, },
protocols: { protocols: {
'a' => { 'href' => ['http', 'https', :relative] } 'a' => { 'href' => ['http', 'https', :relative] }