Skip to content

Node.js based forum software built for the modern web

feat: add playsinline video attribute (#12419)

Tomas Nesrovnal5924a6eb43d3
diff --git a/src/posts/parse.js b/src/posts/parse.js
index 75747b3887..f36013dd77 100644
--- a/src/posts/parse.js
+++ b/src/posts/parse.js
@@ -22,7 +22,7 @@ let sanitizeConfig = {
a: ['href', 'name', 'hreflang', 'media', 'rel', 'target', 'type'],
img: ['alt', 'height', 'ismap', 'src', 'usemap', 'width', 'srcset'],
iframe: ['height', 'name', 'src', 'width'],
- video: ['autoplay', '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'],
source: ['type', 'src', 'srcset', 'sizes', 'media', 'height', 'width'],
embed: ['height', 'src', 'type', 'width'],