mirror of https://github.com/node-red/node-red.git
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.0pull/5073/head
parent
d00bf07fcc
commit
287c7f8da5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue