// 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));
// 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));