escape-quotes (npm): Adds a backslash before single quotes in a string (or whichever characters you like)
Keywords: escape|escape quotes|quote|addslash|slash|addslashes