slayeroffice | code | unicode hex value lookup


Use the unicode entity with createTextNode. For example, to append an ampersand, you would use \u0026 like this:

document.createTextNode("\u0026");

When using innerHTML, you can use the HTML ASCII entity:

document.getElementById("myDiv").innerHTML += "&";

For those interested:

slayeroffice Unicode Hex Value Lookup
version 1.0
last revision: 02.23.2006
steve@slayeroffice.com
http://slayeroffice.com