X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.php;fp=Pman.php;h=f01c02d2166140cd8f393c5109370d686f588712;hb=b8c2b8c16cd4936052a16909e0dca70cd90487d7;hp=94ce7f29e61813841e42cd3bc580b8f83052caa3;hpb=ff9f312645a680de34e6394c324da43865a3dd07;p=Pman.Base 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; }