Node.js based forum software built for the modern web
feat: add allow and frameborder to allow attrs
Barış Soner Uşaklıc3f02b74cc6e
diff --git a/src/posts/parse.js b/src/posts/parse.jsindex 4e16a111ad..0771d88656 100644--- a/src/posts/parse.js+++ b/src/posts/parse.js@@ -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'],