And I believe everyone in Techwyse knows how bad XSS can be.
Attackers usually inject special characters and getting rid of them is one way of defence.
Free Software foundation has a project for this purpose (Open Web Application Security Project)
There is at present an include file from the Project which can be used to "sanitize"
the content in dynamic pages.
Sanitizing works like this.
The functions can be called to remove special chars and render the predetermined character type(int, float, string, alphanumeric etc)
The file can be downloaded here
PHP guys, go santise your code.
