mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-06-06 07:33:55 +02:00
Sanitize markdown HTML output with DOMPurify to prevent XSS (#658)
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -182,5 +182,5 @@ function renderMD(md, baseUrlValue) {
|
||||
throwOnError: false,
|
||||
})
|
||||
);
|
||||
return marked.parse(md, { renderer });
|
||||
return DOMPurify.sanitize(marked.parse(md, { renderer }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user