Answers for "remove backward slash from string javascript"

2

replace backward slash in javascript

const data = { "\\id\\": "\\23232\\", "\\pass\\": "\\1434\\" };
console.log(data);
const b = JSON.stringify(data);
str = b.replace(/\\/g, '');
console.log(str);
Posted by: Guest on May-21-2021
1

javascript string remove backslash

string.replace(/\\\//g, "/");
Posted by: Guest on December-05-2020

Code answers related to "remove backward slash from string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language