I have some JavaScript code that works in IE containing the following:
myElement.innerText = \"foo\";
However, it seems that the \'innerTex
jQuery provides a .text() method that can be used in any browser. For example:
$('#myElement').text("Foo");