I want HTML, for example, , to show show as just that, in plain text, and not interpreted by the browser as an actual tag.
I know JQuery has .h
This is a job for the method createTextNode
var target div = document.getElementById('div1'); targetDiv.appendChild(document.createTextNode('HelloWorld'));
HelloWorld