var textToHTML= function (str) { var dom = document.createElement('div'); dom.innerHTML = str; return dom; };