Retrospring/config/initializers/sanitize.rb

9 lines
216 B
Ruby
Raw Normal View History

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