Created
July 18, 2024 05:42
-
-
Save fomigo/0b02fb3b9e6229a798c0e3b436bde9ce to your computer and use it in GitHub Desktop.
JS - decode double quotes
This file contains hidden or 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
const decode = (str) => | |
new DOMParser() | |
.parseFromString(str, 'text/html') | |
.documentElement | |
.textContent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment