Click here to Skip to main content
15,890,185 members
Articles / Web Development / HTML

Rule Based HTML Sanitizer

Rate me:
Please Sign up or sign in to vote.
4.93/5 (16 votes)
14 Aug 2016MIT8 min read 56.8K   521   26  
A conservative white list based HTML sanitizer using rules. Suitable for restricting document markup, sanitizing comments with limited markup and protection against XSS attacks.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Netherlands Netherlands
Developer at AlertA contractbeheer.

Comments and Discussions