What is the simplest way to replace quote characters with \\\" sequence inside string values?
Use javascript replace (with /g to replace all occurrences)
string.replace(/"/g, '\\"')