php - How to remove backslash on json_encode() function? -
How to remove ) .append (\" & lt; p & gt; This is an exam!! & Lt; / p & gt; \ ")"; Echo json_encode ($ str); ? & Gt; Note: When you explain $ str, there will be no problem ... but when you Is there any way to solve this? Thank you. (\) backslash on a string? For example:
& lt ;? When using php $ str = "$ (\" # output \ "),
echo json_encode () ?
json_encode () ,
(\) < / Code> backslash will appear.
json_encode ($ response, JSON_UNESCAPED_SLASHES);
Comments
Post a Comment