angularjs replace doublequote with single quotes code example Example: js replace quotes mystring = mystring.replace(/["']/g, "");