Fix XSS fallback when DOMPurify is unavailable in chat markdown renderer.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
1f2ef8f012
commit
2727d3cd32
@ -454,7 +454,7 @@ class TranscriptionApp {
|
|||||||
if (typeof DOMPurify !== 'undefined') {
|
if (typeof DOMPurify !== 'undefined') {
|
||||||
return DOMPurify.sanitize(html);
|
return DOMPurify.sanitize(html);
|
||||||
}
|
}
|
||||||
return html;
|
return this.escapeHtml(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
formatBytes(bytes) {
|
formatBytes(bytes) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user