mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 11:14:24 +08:00
Add additional whitelisted tags [SCI-102]
This commit is contained in:
parent
0ecb6904d4
commit
6487bd788a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue