I have a HTML file that has code similar to the following.
Hello World |
&
-
2020-12-11 05:42
This is a bit hacky, but it works on my IE.
a b
Some notes:
- You must have a doctype.
- You cannot query the DOM element before window.onload has fired
- You should use element.nodeValue instead of innerHTML et al to avoid bugs when the text contains things like < > & "
- You cannot reset whiteSpace once IE finishes rendering the page due to what I assume is an ugly bug