Fix XSS fallback when DOMPurify is unavailable in chat markdown renderer.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
keboss-m 2026-06-01 18:33:13 +03:00
parent 1f2ef8f012
commit 2727d3cd32

View File

@ -454,7 +454,7 @@ class TranscriptionApp {
if (typeof DOMPurify !== 'undefined') {
return DOMPurify.sanitize(html);
}
return html;
return this.escapeHtml(text);
}
formatBytes(bytes) {