Answers for "javascript remove all forward slashes from string"

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
0

remove slashes from string javascript

str = str.replace(/\\/g, '')
Posted by: Guest on August-17-2021

Code answers related to "javascript remove all forward slashes from string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language