chore(plugin-chart-table): add muted attribute of video tag to whitelist (#1051)

This commit is contained in:
maltoze
2021-04-14 12:35:30 +08:00
committed by Yongjie Zhao
parent cca4b74fd9
commit d1d1adfca6

View File

@@ -27,6 +27,7 @@ const xss = new FilterXSS({
div: ['style', 'class'],
a: ['style', 'class', 'href', 'title', 'target'],
img: ['style', 'class', 'src', 'alt', 'title', 'width', 'height'],
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width', 'muted'],
},
stripIgnoreTag: true,
css: false,