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 string data must be UTF-8 encoded.
$out = array( 'render' => utf8_encode($renderOutput), 'text' => utf8_encode($textOutput) ); $out = json_encode($out); die($out);