Skip to content
Recursively Escape Apostraphe's from a JSON string for SQL insertion
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
sqlEscape.js

README.md

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

You can’t perform that action at this time.