Avoid "hacking" on text field forms???

On my website, user can edit their profile through a form that allows them to enter their age, name, location and information about them…

I was wondering how can i avoid javascript or html and just make them plain text?

Because i was visiting a site one day and a pop up message appeared with a dumb text, and then i researched and found out that this person used

I dont want to happen on my website because that is just a simple alert box but people with more knowledge could do more harm than that

Hi there,

You’ve already posted this in another area. Please DO NOT double post. POST LOCKED!

Thank you.

Sponsor our Newsletter | Privacy Policy | Terms of Service