added sanitize initializer
This commit is contained in:
parent
5b590d3455
commit
443ca0e663
|
@ -0,0 +1,9 @@
|
|||
EVIL_TAGS = {
|
||||
elements: %w(quote a p i strong em del pre code table tr td th br ul ol li hr),
|
||||
attributes: {
|
||||
'a' => %w(href)
|
||||
},
|
||||
protocols: {
|
||||
'a' => { 'href' => ['http', 'https', :relative] }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue