function EntityToString(value) { let tag = document.createElement("div"); tag.innerHTML = value; let strCode = tag.innerText || tag.textContent; tag = null; return strCode; }