Created
February 26, 2014 11:56
-
-
Save cemerson/9228251 to your computer and use it in GitHub Desktop.
jQuery: Decode Escaped HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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