mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-08-13 06:41:00 +00:00
Merge branch 'main' of github.com:nagisa77/OpenIsle
This commit is contained in:
@@ -157,6 +157,7 @@ const SANITIZE_CFG = {
|
|||||||
'th',
|
'th',
|
||||||
'video',
|
'video',
|
||||||
'source',
|
'source',
|
||||||
|
'iframe',
|
||||||
],
|
],
|
||||||
// 允许的属性
|
// 允许的属性
|
||||||
allowedAttributes: {
|
allowedAttributes: {
|
||||||
@@ -180,6 +181,16 @@ const SANITIZE_CFG = {
|
|||||||
'crossorigin',
|
'crossorigin',
|
||||||
],
|
],
|
||||||
source: ['src', 'type'],
|
source: ['src', 'type'],
|
||||||
|
iframe: [
|
||||||
|
'src',
|
||||||
|
'title',
|
||||||
|
'width',
|
||||||
|
'height',
|
||||||
|
'allow',
|
||||||
|
'allowfullscreen',
|
||||||
|
'frameborder',
|
||||||
|
'referrerpolicy',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
// 允许的类名(保留你的样式钩子)
|
// 允许的类名(保留你的样式钩子)
|
||||||
allowedClasses: {
|
allowedClasses: {
|
||||||
|
|||||||
Reference in New Issue
Block a user