# apostrophecms/sanitize-html

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/apostrophecms-sanitize-html).**

4,129 stars · 371 forks · JavaScript · MIT · archived

## Links

- GitHub: https://github.com/apostrophecms/sanitize-html
- awesome-repositories: https://awesome-repositories.com/repository/apostrophecms-sanitize-html.md

## Description

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance

## Tags

### Part of an Awesome List

- [Parsing Tools](https://awesome-repositories.com/f/awesome-lists/data/parsing-tools.md) — HTML sanitization tool.
- [Security and Sanitization](https://awesome-repositories.com/f/awesome-lists/security/security-and-sanitization.md) — Simple API for HTML sanitization.
