Skip to content

Instantly share code, notes, and snippets.

@cemerson
Created February 26, 2014 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemerson/9228251 to your computer and use it in GitHub Desktop.
Save cemerson/9228251 to your computer and use it in GitHub Desktop.
jQuery: Decode Escaped HTML
function decodeEscapedHTML (escapedHTML) {
var decodedHTML = $('<div/>').html(encodedText).text();
return decodedHTML;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment