mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: add allow and frameborder to allow attrs
This commit is contained in:
@@ -22,7 +22,7 @@ let sanitizeConfig = {
|
||||
...sanitize.defaults.allowedAttributes,
|
||||
a: ['href', 'name', 'hreflang', 'media', 'rel', 'target', 'type'],
|
||||
img: ['alt', 'height', 'ismap', 'src', 'usemap', 'width', 'srcset'],
|
||||
iframe: ['height', 'name', 'src', 'width'],
|
||||
iframe: ['height', 'name', 'src', 'width', 'allow', 'frameborder'],
|
||||
video: ['autoplay', 'playsinline', 'controls', 'height', 'loop', 'muted', 'poster', 'preload', 'src', 'width'],
|
||||
audio: ['autoplay', 'controls', 'loop', 'muted', 'preload', 'src'],
|
||||
source: ['type', 'src', 'srcset', 'sizes', 'media', 'height', 'width'],
|
||||
|
||||
Reference in New Issue
Block a user