sanitize-html

sanitize-html provides a simple HTML sanitizer with a clear API.

sanitize-html repository preview
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
Language
JavaScript
Stars
3,993
Published
9/9/2013
CategoryJavaScript
More in JavaScript