I would love to know which best methods/tips do we have to use to prevent and make difficult a xss attack ?
I know there are :
- use htmlspecialchars()
- use sanitize filters
- use strip_tags()
- use filter_input_array()
- disallow everything not needing
- http://htmlpurifier.org/
- read this http://www.addedbytes.com/writing-secure-php/
What's about users who need to complete a database? What kind of mistakes usually can do a new developer?
Thank you