Forum Moderators: open

Message Too Old, No Replies

html in form text box

         

dkin

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

10+ Year Member



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

eg

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

encyclo

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

WebmasterWorld Senior Member 10+ Year Member



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

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

StupidScript

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

WebmasterWorld Senior Member 10+ Year Member



Use HTML entities, like:

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

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