Add additional whitelisted tags [SCI-102]

This commit is contained in:
Oleksii Kriuchykhin 2017-01-05 14:40:38 +01:00
parent 0ecb6904d4
commit 6487bd788a

View file

@ -208,8 +208,9 @@ class Constants
].freeze
WHITELISTED_TAGS = [
'a', 'b', 'strong', 'i', 'em', 'li', 'ul', 'ol', 'h1',
'h2', 'h3', 'br', 'sub', 'p', 'div', 'span'
'a', 'b', 'strong', 'i', 'em', 'li', 'ul', 'ol', 'h1', 'del', 'ins',
'h2', 'h3', 'h4', 'h5', 'h6', 'br', 'sub', 'sup', 'p', 'code', 'hr',
'div', 'span', 'u', 's', 'blockquote', 'pre'
].freeze
# Very basic regex to check for validity of emails