I\'ve got a php script which generates HTML content. Is there a way to send back that HTML content through JSON to my webpage from the php script?
All these answers didn't work for me.
But this one did:
json_encode($array, JSON_HEX_QUOT | JSON_HEX_TAG);
Thanks to this answer.