$.ajax
PHP Backend return:
PHP code
Reply to discussion (solution)
Turn off PHP settings Magic quotes GPC
or run stripslashes on the results
Turn off PHP settings Magic quotes GPC
or run stripslashes on the results
Excuse me, my other colleague wrote the Ajax request exactly the same, how there is no escape character.
You are looking through the browser plugin response it?
Web direct output also with backslashes?
Because you opened the MAGIC_QUOTES_GPC switch.
if (GET_MAGIC_QUOTES_GPC ()) { foreach ($_post as & $v) $v = Stripslashes ($v);}
You are looking through the browser plugin response it?
Web direct output also with backslashes?
Yes, the Web direct output is not. But the response inside represents the background to receive the time produced a slash
Because you opened the MAGIC_QUOTES_GPC switch.
if (GET_MAGIC_QUOTES_GPC ()) { foreach ($_post as & $v) $v = Stripslashes ($v);}
But when someone passed the value, it didn't happen to me.
Everyone's PHP environment is the same?