How-to articles, tricks, and solutions about XSS
How can I sanitize user input with PHP?
There are several ways to sanitize user input in PHP, depending on the type of data and how you plan to use it.
XSS filtering function in PHP
Here is an example of a basic XSS filtering function in PHP: