Javascript Function to Recursively Escape Apostraphe's from a JSON string for SQL insertion
Function as is can take JSON string with apostraphe's in the value of each key/value pair and escape the string of all apostraphe occurences recursively.
written by Justin Haubrich, https://jhaubrich.com