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

HTML in Text Nodes

Status
Not open for further replies.

mattdp

Programmer
Apr 22, 2002
6
GB
Hi,

I've been using the createTextnode method to insert text into an HTML document at the appropriate places. However, it's come to my attention that createTextnode only accepts plain text, and if you try shoving HTML onto a text node it appears in full <> and all. I really nee to be able to either insert HTML into a text node or find some work around for this, as part of the information that has to appear inside the <div> are hyperlinks. Anyone help me out on this?
 
I have no idea what a text node is but can you use the unicode for the trigangular braces instead?

U+003C <

U+003E >

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top