There’s innerText if you don’t want markup. Or more verbosely, document.createTextNode followed by whatever.appendChild.