Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 314 Bytes

File metadata and controls

7 lines (5 loc) · 314 Bytes

sqlEscapeJSON

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