faker javascript name escape apostrophe code example Example: faker javascript name escape apostrophe strInputString = strInputString.replace(/'/g, "\\'");