replace all single quotes in javascript code example Example: js replace quotes mystring = mystring.replace(/["']/g, "");