Fixed HTML encoding for Firefox

Switched from the non-standard innerText to the standard textContent