if ($retHTML) {
header('Content-type: text/html');
- echo "<HTML><HEAD></HEAD><BODY>";
+ echo "<HTML><HEAD></HEAD><BODY><";
// encode html characters so they can be read..
echo str_replace(array('<','>'), array('\u003c','\u003e'),
$this->jsencode(array('success'=> true, 'data' => $str), false));
if ($retHTML) {
header('Content-type: text/html');
- echo "<HTML><HEAD></HEAD><BODY>";
+ echo "<HTML><HEAD></HEAD><BODY><![CDATA[";
// encode html characters so they can be read..
echo str_replace(array('<','>'), array('\u003c','\u003e'),
$this->jsencode(array('success' => true, 'total'=> $total, 'data' => $ar) + $extra, false));
- echo "</BODY></HTML>";
+ echo "]]></BODY></HTML>";
exit;
}