Snips

Reusable Code Snippets

Javascript | Decode HTML Strings

Edit on Github
function decodeHtml(htmlString) {
  var tArea = document.createElement("textarea");
  tArea.innerHTML = htmlString;
  return tArea.value;
}