ui: optimize fps problem display

This commit is contained in:
undefined committed 2022-11-25 18:10:42 +08:00
1 parent 9fabb42c2e
commit 9901de944f
2 files changed
+13 -3

No files matched your search

@@ -75,12 +75,12 @@ export const xss = new Xss.FilterXSS({
li: [],
mark: [],
ol: [],
p: [],
p: ['align', 'style'],
pre: [],
s: [],
section: [],
small: [],
span: ['class'],
span: ['class', 'style'],
sub: [],
summary: [],
sup: [],
@@ -98,6 +98,16 @@ export const xss = new Xss.FilterXSS({
var: [],
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width'],
},
css: {
whiteList: {
'font-size': true,
'font-family': true,
'text-align': true,
'text-indent': true,
'margin-left': true,
color: true,
},
},
allowCommentTag: false,
stripIgnoreTagBody: ['script'],
safeAttrValue(tag, name, value) {