2014-12-28 19:06:04 +01:00
|
|
|
EVIL_TAGS = {
|
2014-12-28 19:12:28 +01:00
|
|
|
elements: %w(blockquote a p i strong em del pre code table tr td th br ul ol li hr),
|
2014-12-28 19:06:04 +01:00
|
|
|
attributes: {
|
|
|
|
'a' => %w(href)
|
|
|
|
},
|
|
|
|
protocols: {
|
|
|
|
'a' => { 'href' => ['http', 'https', :relative] }
|
|
|
|
}
|
|
|
|
}
|