I have some JavaScript code that works in IE containing the following:
myElement.innerText = \"foo\";
However, it seems that the \'innerTex
A really simple line of Javascript can get the "non-taggy" text in all main browsers...
var myElement = document.getElementById('anyElementId'); var myText = (myElement.innerText || myElement.textContent);