Skip to content

Instantly share code, notes, and snippets.

@fomigo
Created July 18, 2024 05:42
Show Gist options
  • Save fomigo/0b02fb3b9e6229a798c0e3b436bde9ce to your computer and use it in GitHub Desktop.
Save fomigo/0b02fb3b9e6229a798c0e3b436bde9ce to your computer and use it in GitHub Desktop.
JS - decode double quotes
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