Strip JavaScript #497

Closed
opened 2026-01-29 14:38:11 +00:00 by claunia · 1 comment
Owner

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

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
claunia added the question label 2026-01-29 14:38:11 +00:00
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#497