how to add html entity using appendChild
|
| View previous topic :: View next topic |
| Author |
Message |
Jackil
Joined: 24 May 2006 Posts: 97
|
| How can I add an html entity (e.g., →) using appendChild? When I put it in a textNode, I actually see the characters → rather than the right-arrow entity. |
| |
|
|
|
|
AmeliaR
Joined: 31 May 2006 Posts: 142
|
| you have to create an entity node |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
you could just add the character directly
But if you really want the entity reference, use document.createEntityReference
I'd just put the character into a text node though |
| |
|
|
|
|