Allow target for links in sanitizer
This commit is contained in:
parent
02a5e7029e
commit
3d04f54a0f
|
@ -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)
|
||||
'a' => %w(href target)
|
||||
},
|
||||
protocols: {
|
||||
'a' => { 'href' => ['http', 'https', :relative] }
|
||||
|
|
Loading…
Reference in New Issue