Allow target for links in sanitizer

This commit is contained in:
Andreas Nedbal 2021-12-30 18:14:34 +01:00 committed by Andreas Nedbal
parent 02a5e7029e
commit 3d04f54a0f
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) 'a' => %w(href target)
}, },
protocols: { protocols: {
'a' => { 'href' => ['http', 'https', :relative] } 'a' => { 'href' => ['http', 'https', :relative] }