added sanitize initializer

This commit is contained in:
nilsding 2014-12-28 19:06:04 +01:00
parent 5b590d3455
commit 443ca0e663
1 changed files with 9 additions and 0 deletions

View File

@ -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] }
}
}