I'm sending a JSON encoded response to the request coming from iPhone. In few of the values some HTML entities are present. I tried using stripslashes()
and html_entity_decode()
on such values. In browser I'm able to get the proper JSON response i.e. without these HTML entities but when the same response is seen on iPhone or iPhone simulator the HTML entities displayed again.
How should I resolve this issue? Can someone please help?
If you wan I can provide you the necessary code.
Thanks.