Last active
November 30, 2019 07:11
-
-
Save GitHub30/37e1f136572293a80d02eaec8099bae6 to your computer and use it in GitHub Desktop.
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 unescapeHTML(escapedHTML) { | |
return new DOMParser().parseFromString(escapedHTML, 'text/html').documentElement.textContent | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment