Skip to content

Commit cc17b1f

Browse files
committed
Fix: DOMPurify removing <svg> elements
Fix: Incorrectly configured DOMPurify See: #2045
1 parent 521cfcc commit cc17b1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/js/Util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ const util = (function() {
10561056
}
10571057

10581058
function sanitize(dirty) {
1059-
const clean = DOMPurify.sanitize(dirty, { USE_PROFILES: { html: true } });
1059+
const clean = DOMPurify.sanitize(dirty);
10601060
return new DOMParser().parseFromString(clean, "text/html");
10611061
}
10621062

0 commit comments

Comments
 (0)