Merge pull request #5742 from dataease/pr@dev_st_fix

Pr@dev st fix
This commit is contained in:
dataeaseShu 2023-07-22 12:38:36 +08:00 committed by GitHub
commit 22a76abfe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,6 +455,7 @@ export default {
whiteList: {
'background-color': true,
'text-align': true,
'color': true,
'margin-top': true,
'margin-bottom': true,
'line-height': true,
@ -465,7 +466,8 @@ export default {
},
whiteList: {
...xss.whiteList,
p: ['style']
p: ['style'],
span: ['style']
}
})
this.footContent = myXss.process(content)