WeKnora/frontend/src
lyingbug 03fda55261 fix(frontend): replace v-html with text interpolation in deepThink
Replace v-html + DOMPurify sanitization with plain Vue text
interpolation ({{ }}) and CSS white-space: pre-wrap for the
thinking content display.

The thinking content is raw model output that should never be
interpreted as HTML. Using v-html here created an unnecessary XSS
attack surface — even with DOMPurify, the \n→<br/> replacement
happened before sanitization, and future changes to sanitizer config
could introduce vulnerabilities.

Plain text rendering with pre-wrap:
- Eliminates XSS risk entirely (no HTML parsing)
- Preserves line breaks natively via CSS
- Removes the sanitizeHTML import and safeProcessThinkContent function
- Simpler code with identical visual output
2026-03-25 22:08:29 +08:00
..
api feat(im): add DingTalk platform integration 2026-03-24 22:12:08 +08:00
assets refactor: unify dropdown menu styles across components 2026-03-16 20:13:30 +08:00
components fix: upgrade marked dependency to version 17.0.5 to fix code block rendering 2026-03-25 21:25:54 +08:00
composables feat: update theme and UI styles across components 2026-03-05 18:14:14 +08:00
hooks feat(i18n): replace hardcoded Chinese strings with i18n calls across frontend 2026-03-06 10:34:08 +08:00
i18n fix: add missing common.saveSuccess and common.saveFailed i18n keys 2026-03-25 21:21:09 +08:00
router feat: implement knowledge search feature with enhanced configuration and UI 2026-03-02 21:21:49 +08:00
stores feat: implement image upload and multimodal support 2026-03-16 02:26:47 +08:00
types feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
utils fix: upgrade marked dependency to version 17.0.5 to fix code block rendering 2026-03-25 21:25:54 +08:00
views fix(frontend): replace v-html with text interpolation in deepThink 2026-03-25 22:08:29 +08:00
App.vue fix(i18n): complete multilingual support for TDesign components and locale key synchronization 2026-03-09 10:35:41 +08:00
main.ts refactor: unify dropdown menu styles across components 2026-03-16 20:13:30 +08:00