Allow target for links in sanitizer
This commit is contained in:
parent
02a5e7029e
commit
3d04f54a0f
|
@ -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] }
|
||||||
|
|
Loading…
Reference in New Issue