mardi 4 août 2015

PHP, prevent javascript from running /delete javascript or php code written by user in a form [duplicate]

This question already has an answer here:

I am making a website where people will publish an article. I make them write their article in a textarea, but I don't want them to add javascript, php or any other langage than html to prevent XSS or SQL injections. I'm trying to delete javascript or php code written by user in a form How can I do this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire