Answers for "how to replace ' by \' in javascript"

31

javascript replace

var res = str.replace("find", "replace");
Posted by: Guest on October-21-2019
2

javascript replace

var text = "Sentence with old text"
alert( text.replace("old text", "new text") ); // Sentence with new text
Posted by: Guest on March-14-2021

Code answers related to "how to replace ' by \' in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language