G
Gaurav Singh
Hi,
I am new to web development. I have a problem. I have certain
textboxes where I want that the text that a user enters should only be
displayed as text. The problem is suppose if someone enters something
like <INPUT type="text"> or <img src="someImage.jpg"> i start getting
textboxes and images whereas I just want to display the string entered
by the user. One possible solution could be using the pre tag. I just
wanted to know whether there is a standard method to disable rendering
of HTML tags as I have seen most of the sites dont allow it.
TIA
Gaurav
I am new to web development. I have a problem. I have certain
textboxes where I want that the text that a user enters should only be
displayed as text. The problem is suppose if someone enters something
like <INPUT type="text"> or <img src="someImage.jpg"> i start getting
textboxes and images whereas I just want to display the string entered
by the user. One possible solution could be using the pre tag. I just
wanted to know whether there is a standard method to disable rendering
of HTML tags as I have seen most of the sites dont allow it.
TIA
Gaurav