X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=blobdiff_plain;f=encode.php;h=a395a10ef3e8558dc23b7a11214e811741b7d89d;hp=381e68169539a9c4e13d4e97654947170db20418;hb=HEAD;hpb=f8a8d44598bdb6e4446920b8d10d1bc62916c9aa diff --git a/encode.php b/encode.php index 381e681..a395a10 100644 --- a/encode.php +++ b/encode.php @@ -32,6 +32,10 @@ function enc_jsdq($str) { return $str; } +function enc_json($str) { + return json_encode($str); +} + # encode for putting within double-quotes in SQL function enc_sql($str) { $str = str_replace("\\", "\\\\", $str);