mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Strip JavaScript #497
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tidyui on GitHub (Jan 28, 2022).
This is more of a question than an issue, but I was wondering if there’s any option or extension point to, for security reasons, strip JavaScript inserted into markdown content either on save, or when converting to HTML.
Best regards
@xoofx commented on GitHub (Jan 28, 2022):
There is no option to do it on Markdown directly and I suggest to do it on the output with e.g something like https://github.com/mganss/HtmlSanitizer