SyntaxFix
Write A Post
Hire A Developer
Questions
var str = 'Dude, he totally said that "You Rock!"'; var var1 = str.replace(/\"/g,"\\\""); alert(var1);