From b8c2b8c16cd4936052a16909e0dca70cd90487d7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 29 Mar 2011 14:47:19 +0800 Subject: [PATCH] Pman.php --- Pman.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.php b/Pman.php index 94ce7f2..f01c02d 100644 --- a/Pman.php +++ b/Pman.php @@ -465,8 +465,8 @@ class Pman extends HTML_FlexyFramework_Page header('Content-type: text/html'); echo ""; // encode html characters so they can be read.. - $str = str_replace(array('<','>'), array('\u003c','\u003e'), $str); - echo $json->encodeUnsafe(array('success'=> true, 'data' => $str)); + echo str_replace(array('<','>'), array('\u003c','\u003e'), + $json->encodeUnsafe(array('success'=> true, 'data' => $str))); echo ""; exit; } -- 2.39.2