homepage Welcome to WebmasterWorld Guest from 54.237.99.131
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
html in form text box
dkin

10+ Year Member



 
Msg#: 11781 posted 6:29 pm on Feb 17, 2006 (gmt 0)

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

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



 
Msg#: 11781 posted 7:04 pm on Feb 17, 2006 (gmt 0)

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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 11781 posted 7:05 pm on Feb 17, 2006 (gmt 0)

Use HTML entities, like:

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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved