escaping characters / json_encode
escaping characters / json_encode

hi.
I'm using the latest version. also using json_encode on the output. for testing purposes, I am taking straight from the database and passing the following to datatables:
[code]
\'" AND \'key\' = 12\'"
[/code]
...but the table doesn't show. FireBug log:
[code]
...\"\\'" AND \\'key\\' = 12\\'"\"...
[/code]
what gives? thanks.
I'm using the latest version. also using json_encode on the output. for testing purposes, I am taking straight from the database and passing the following to datatables:
[code]
\'" AND \'key\' = 12\'"
[/code]
...but the table doesn't show. FireBug log:
[code]
...\"\\'" AND \\'key\\' = 12\\'"\"...
[/code]
what gives? thanks.
This discussion has been closed.
Replies
Allan
http://php.net/manual/en/security.magicquotes.disabling.php