というタイトルの変数に 1 つの文字列があります$message
。
echo stripslashes(strip_tags($message));
次の出力を得た後。
Michael Clarke commented on Darren Lehmann's status update "ߘðߘİߘ0ߘʢغ️"
ステートメントecho json_encode($message);
を実行した後、次の出力が得られました。
Michael Clarke commented on Darren Lehmann's status update \"ߘðߘİߘ0ߘʢغ️\"
私の懸念は、余分なバックスラッシュとガベージデータが最終出力に表示されないようにすることです。それらを削除するには?
コードのどこが間違っているか教えてください。
前もって感謝します。