mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user