ymakux / xss Goto Github PK
View Code? Open in Web Editor NEWPHP filter class to prevent cross-site-scripting (XSS) vulnerabilities. Removes dangerous tags and protocols from HTML. The main difference between this class and strip_tags() or filter_var() is that you can preserve certain tags AND sanitize their attributes. Port of Drupal's XSS filter
License: GNU General Public License v2.0