The ideal way to escape a string with php, is json_encode. This requires php > 5.2. Here is a solution for older versions of php.
確定! 回上一頁