You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Marked does not sanitize the output HTML. Please use a sanitize library, like DOMPurify (recommended), sanitize-html or insane on the output HTML! 🚨
Afte using marked + DOMPurify, I feed that it is hard to use marked safety.
I think that we need to improve documentation about the usage of sanitizing.
Or just come back to support sanitize option...
However, The documentation is not fundamental solution.
Thanks.
📝 Note: The size of recommentation libraries :
sanitize-html is too large. insane looks like that is not maintained and have some problem.
So, I've selected DOMPurify. DOMPurify is maintained by security company.
Hi @azu
I was intrigued by your comment here:
markedjs/marked#1519 (comment)
However, does
safe-marked
include JSDom by default? If I don't use SSR in an SPA of mine, I might not need JSDom.The text was updated successfully, but these errors were encountered: