mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #1161 from sharelatex/jel-extend-sanitize-options-cms
Extend sanitize HTML options GitOrigin-RevId: da9dd1741ca31f095e4fafe91c1beb9abd019567
This commit is contained in:
parent
2fbbdb25be
commit
c20a506f0e
1 changed files with 3 additions and 2 deletions
|
@ -500,9 +500,9 @@ module.exports = settings =
|
|||
modules:
|
||||
sanitize:
|
||||
options:
|
||||
allowedTags: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'iframe', 'img', 'figure', 'figcaption', 'source', 'video' ]
|
||||
allowedTags: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'iframe', 'img', 'figure', 'figcaption', 'span', 'source', 'video' ]
|
||||
allowedAttributes:
|
||||
'a': [ 'href', 'name', 'target', 'class' ]
|
||||
'a': [ 'href', 'name', 'target', 'class', 'event-tracking', 'event-tracking-ga', 'event-tracking-label', 'event-tracking-trigger' ]
|
||||
'div': [ 'class', 'id', 'style' ]
|
||||
'h1': [ 'class', 'id' ]
|
||||
'h2': [ 'class', 'id' ]
|
||||
|
@ -515,4 +515,5 @@ module.exports = settings =
|
|||
'iframe': [ 'allowfullscreen', 'frameborder', 'height', 'src', 'width' ]
|
||||
'img': [ 'alt', 'class', 'src', 'style' ]
|
||||
'source': [ 'src', 'type' ]
|
||||
'span': [ 'class', 'id', 'style' ]
|
||||
'video': [ 'alt', 'class', 'controls', 'height', 'width' ]
|
||||
|
|
Loading…
Reference in a new issue