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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript, text area, html

Status
Not open for further replies.

mcaizpp2

Programmer
Aug 25, 2004
23
GB
Hi,

I've got a problem where I have a popup associated to a text area. When the popup is used it displays a checkbox and some text. If you check the box the text is placed in the text area.

What I started noticing is that if the text has the characters "<" or ">" and the Javascript puts the text into the textarea the "<" or ">" character is displayed as its html equivalent "&lt" in the text area.

Is there a way of disabling this so that only the "<" or ">" characters is displayed in the text area?

Thanks for any suggesstions.
 
It depends on the code you are using to put the text in the textarea. If you're seeing "&lt", then it may well be that you've missed a semicolon off of "&lt[!];[/!]". If you've simply made a typo in your post, and you also see a semicolon, then do not escape the text.

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top