65.9K
CodeProject is changing. Read more.
Home

Rule Based HTML Sanitizer

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.93/5 (16 votes)

Feb 23, 2015

MIT

8 min read

viewsIcon

60042

downloadIcon

550

A conservative white list based HTML sanitizer using rules. Suitable for restricting document markup, sanitizing comments with limited markup and protection against XSS attacks.