escape-quotes
Adds a backslash before single quotes in a string (or whichever characters you like)
sql-escape
Escape SQL special characters and quotes in strings
sanitize-utils
A utility function to sanitize quotes in strings (escape ' and ")
slashes
Add or remove backslashes (escape or unescape).