document.createTextNode instead of HTML to preserve spaces in redactions