I am retrieving data from a database, where the field contains a String with HTML data. I want to replace all of the double quotes such that it can be used for parseJS
parseJS
The following regex will work for both:
text = text.replaceAll("('|\")", "\\\\$1");