const str = `{\"hitPaywall\":false,\"counted\":false}`
const newStr = str.replaceAll('\\', '')
console.log(newStr) // {"hitPaywall":false,"counted":false}
Last active
October 14, 2021 19:02
-
-
Save alexpaul/4ec66a6ed01e19e1006115a2e9d67650 to your computer and use it in GitHub Desktop.
Removing backlash characters from a String in JavaScript.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment