Parses XHTML code into a DOM structure and attaches it as child node(s) of an Element.
setHtml(xhtml)< or > must be escaped as < and >, unless they are used to indicate an XHTML element. If you do not need the parser function, the .appendText() and .prependText() functions are the better alternatives.Simple example:
let foo = document.getElementById('foo'); foo.setHtml('<a href="/" target="_blank">Click</a> <strong>here</strong>!');