double quote escape character in javascript code example
Example 1: javascript escape quote method
stringToEscape.replace(/"/g, '\\\"')
Example 2: javascript escape single quote
document.getElementById("something").innerHTML = "<img src='something' onmouseover='change(\"ex1\")' />";