From 4d71c63c216ff9dbe8ead4b6a076dbdc74c275ff Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 17 Nov 2022 17:36:26 +0800 Subject: [PATCH] cdata suport on jdata() --- Pman.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pman.php b/Pman.php index f8f9ab5..c8a4ecb 100644 --- a/Pman.php +++ b/Pman.php @@ -605,7 +605,7 @@ class Pman extends HTML_FlexyFramework_Page if ($retHTML) { header('Content-type: text/html'); - echo ""; + echo "<"; // encode html characters so they can be read.. echo str_replace(array('<','>'), array('\u003c','\u003e'), $this->jsencode(array('success'=> true, 'data' => $str), false)); @@ -649,11 +649,11 @@ class Pman extends HTML_FlexyFramework_Page if ($retHTML) { header('Content-type: text/html'); - echo ""; + echo "'), array('\u003c','\u003e'), $this->jsencode(array('success' => true, 'total'=> $total, 'data' => $ar) + $extra, false)); - echo ""; + echo "]]>"; exit; } -- 2.39.2