fix(ui): fix xss in thinking

This commit is contained in:
wizardchen
2025-09-16 12:31:17 +08:00
committed by lyingbug
parent 5e22f96d37
commit 4005aa3ded
3 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ const DOMPurifyConfig = {
'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
'ul', 'ol', 'li', 'blockquote', 'pre', 'code',
'a', 'img', 'table', 'thead', 'tbody', 'tr', 'th', 'td',
'div', 'span', 'figure', 'figcaption'
'div', 'span', 'figure', 'figcaption', 'think'
],
// 允许的属性
ALLOWED_ATTR: [