Users Viewing This Thread
 1 Guest(s)
amatorbalikci.net

Post Reply  Post Thread 
How to stop JavaScript code from executing itself
Author Message
smacker
Member
***


Posts: 234
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0

Country:
Post: #1
How to stop JavaScript code from executing itself

Hi All,

Suupose in textarea some body enters following code:-

<script language="javascript" >alert('Hi');

How to stop JavaScript code from executing itself when displaying the data.

One way is to stop entring this data into DB thru strip_tags

But in case if such data is present then How to stop it from executing ?

so tht it will just display