SyntaxFix
Write A Post
Hire A Developer
Questions
The following works for me:
function decodeHtml(html) { let areaElement = document.createElement("textarea"); areaElement.innerHTML = html; return areaElement.value; }