feat: add allow and frameborder to allow attrs

This commit is contained in:
Barış Soner Uşaklı
2024-08-12 10:30:01 -04:00
parent 780db9e2ff
commit c3f02b74cc

View File

@@ -22,7 +22,7 @@ let sanitizeConfig = {
...sanitize.defaults.allowedAttributes, ...sanitize.defaults.allowedAttributes,
a: ['href', 'name', 'hreflang', 'media', 'rel', 'target', 'type'], a: ['href', 'name', 'hreflang', 'media', 'rel', 'target', 'type'],
img: ['alt', 'height', 'ismap', 'src', 'usemap', 'width', 'srcset'], 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'], video: ['autoplay', 'playsinline', 'controls', 'height', 'loop', 'muted', 'poster', 'preload', 'src', 'width'],
audio: ['autoplay', 'controls', 'loop', 'muted', 'preload', 'src'], audio: ['autoplay', 'controls', 'loop', 'muted', 'preload', 'src'],
source: ['type', 'src', 'srcset', 'sizes', 'media', 'height', 'width'], source: ['type', 'src', 'srcset', 'sizes', 'media', 'height', 'width'],