sanitize-html
sanitize-html provides a simple HTML sanitizer with a clear API.
What You'll Learn
Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance
Technologies & Topics
utility
Getting Started
1. Clone the Repository
git clone https://github.com/apostrophecms/sanitize-html.git
2. Follow the README
Check the repository's README file for specific setup instructions, dependencies, and usage examples.
3. Explore and Learn
Study the code structure, run the examples, and experiment with modifications to deepen your understanding.
Repository Info
Quick Actions
More in JavaScript