Merge branch 'main' of github.com:nagisa77/OpenIsle

This commit is contained in:
tim
2025-10-02 22:00:20 +08:00
+11
View File
@@ -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: {