
Websites · 4 options
Showing user text safely
Turning text people type, or Markdown, into HTML without letting a script slip through.
The options
Worth comparing
DOMPurify
Cure53 and contributors
sanitize-html
Apostrophe Technologies
marked
Community maintained
markdown-it
Community maintained
Think this list is missing something? Suggest it for the Stacks
Side by side
The facts at a glance
Each project’s licence, where it runs, when it started and whether it publishes a security policy and its fixes.
| Option | Licence | Runs | First released | Security policy | Published fixes |
|---|---|---|---|---|---|
| DOMPurify | Apache-2.0 | Your server | 2014 | Yes (official site, opens outside Firefly Collective) | Yes (official site, opens outside Firefly Collective) |
| sanitize-html | MIT | Your server | 2013 | Yes (official site, opens outside Firefly Collective) | – |
| marked | See licence | Your server | 2011 | Yes (official site, opens outside Firefly Collective) | Yes (official site, opens outside Firefly Collective) |
| markdown-it | MIT | Your server | 2014 | Yes (official site, opens outside Firefly Collective) | Yes (official site, opens outside Firefly Collective) |
Firefly Collective is independent and not affiliated with or endorsed by the projects listed. Names and logos are the property of their owners. Summaries are provided as-is; always check the project’s official advisory.
Think something belongs here?
Suggest it for the Stacks
Anyone can suggest software for the guide. Tell us what it is, which kind it belongs to and why it fits the charter; a person reads every suggestion.