chore(editor): update `DOMPurify` flag

DOMPurify 2.1.0: Removed the SAFE_FOR_JQUERY flag (we are safe by default now for jQuery)
https://github.com/cure53/DOMPurify/releases/tag/2.1.0
pull/5073/head
Rotzbua 2025-03-03 21:04:22 +01:00
parent d00bf07fcc
commit 287c7f8da5
No known key found for this signature in database
GPG Key ID: C69022D529C17845
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ RED.utils = (function() {
function renderMarkdown(txt) {
var rendered = _marked.parse(txt);
var cleaned = DOMPurify.sanitize(rendered, {SAFE_FOR_JQUERY: true})
const cleaned = DOMPurify.sanitize(rendered);
return cleaned;
}