Change uses of `innerHTML` to `textContent`

Since you never use the feature of [`innerHTML`] to embed HTML, it is safer and faster to use [`textContent`] instead.

[`innerHTML`]: https://developer.mozilla.org/en-US/docs/Web/API/Element.innerHTML
[`textContent`]: https://developer.mozilla.org/en-US/docs/Web/API/Node.textContent