ui: disable media autoplay

This commit is contained in:
undefined committed 2024-10-25 12:17:17 +08:00
1 parent 0bc1729147
commit 51f29ab52b
1 file changed
+2 -2
@@ -121,7 +121,7 @@ export const xss = new FilterXSS({
...commonRules.whiteList,
area: ['shape', 'coords', 'href', 'alt'],
article: [],
audio: ['autoplay', 'controls', 'loop', 'preload', 'src'],
audio: ['controls', 'loop', 'preload', 'src'],
col: ['align', 'valign', 'span', 'width'],
colgroup: ['align', 'valign', 'span', 'width'],
dd: [],
@@ -146,7 +146,7 @@ export const xss = new FilterXSS({
thead: ['align', 'valign'],
tr: ['rowspan', 'align', 'valign'],
ul: [],
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width'],
video: ['controls', 'loop', 'preload', 'src', 'height', 'width'],
},
css: cssFilterOptions,
safeAttrValue(tag, name, value) {