jquery - Script disable in text boxes -


How can I stop a script from executing the text box using jQuery?

Here's my complete problem:

I want to send a message to someone using jQuery; If I have entered a script tag like a , href , script , then they are not appearing in another message. How can I stop it?

You need typed text from encoded .

The most common way is to server side, for example ASP will need to be used:

  strData = Server.HTMLEncode (strData);   

and then if the data contains & lt; B & gt; Hello & lt; / B & gt; Users will really see this.

Client side to do this:

Comments