javascript escape quote method
stringToEscape.replace(/"/g, '\\\"')
javascript escape quote method
stringToEscape.replace(/"/g, '\\\"')
javascript escape single quote
document.getElementById("something").innerHTML = "<img src='something' onmouseover='change(\"ex1\")' />";
javascript escape single quote
var string = 'this isn\'t a double quoted string';
var string = "this isn\"t a single quoted string";
// ^ ^ same types, hence we need to escape it with a backslash
javascript escape quotes
let text = 'I\'m John Smith';
//I'm John Smith
let text2 = "I\"m Smith John";
//I"m Smith John
let text3 = `Es'cape "all" quotes`
//Es'cape "all" quotes
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us