I've one string in a variable titled $message
.
After echo stripslashes(strip_tags($message));
I got following output.
Michael Clarke commented on Darren Lehmann's status update "ߘðߘİߘ0ߘʢغ️"
Now after executing the statement echo json_encode($message);
I got following output :
Michael Clarke commented on Darren Lehmann's status update \"ߘðߘİߘ0ߘʢغ️\"
My concern is I won't want the extra backslash and also the garbage data appeared in the final output. How to remove them?
Please guide me where I'm making a mistake in my code?
Thanks in advance.