Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

html in form text box

6:29 pm on Feb 17, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 4, 2004
votes: 0

I am trying to display html in a form text box but nothing comes up,m how do I show it?


<textarea><img src=""></textarea>

7:04 pm on Feb 17, 2006 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
votes: 4

Do you mean show the output of the parsed HTML, or displaying the contents of the
as source code? If the latter, then you need to use the entity references
for the left and right-angled brackets:

<textarea>&lt;img src=""&gt;</textarea>
7:05 pm on Feb 17, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 20, 2004
votes: 0

Use HTML entities, like:

<textarea>&lt;img src="some.gif"&gt;</textarea>

<edit>DOH! Man you're fast ...</edit>