Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing HTML code in a textarea

Status
Not open for further replies.

fatfishmatt

Programmer
Aug 25, 2005
5
AU
I'm trying to pull HTML code into a form textarea however I actually want the code to be displayed and not the formatting.

i.e. <font color="#FF0000;">Hello World</font> needs to be displayed as <font color="#FF0000;">Hello World</font> and not red text that says Hello World.

Thanks in Advance
 
And what does not work if you do:
Code:
echo '<textarea>' . $myHTML . '</textarea>';
Any code in textarea will not get parsed, it will simply be output.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top