So I\'ve been slowly replacing a lot of my normal jQuery code with native javascript, and I happened upon the document.createTextNode() and related MDN document
document.createTextNode()
innerText get and set the content as plain text, encode and decode. When innerHTML get and set the content in HTML format.
innerText
innerHTML
var div = document.createElement('div'); div.innerText = 'Y HALO THAR';