修改了单双引号转义的逻辑

This commit is contained in:
Li Jianxuan 2011-12-26 03:00:59 +00:00
parent 5b2f3278c2
commit 08e0da7935
1 changed files with 1 additions and 2 deletions

View File

@ -164,8 +164,7 @@ class Admin_NewsController extends Zend_Controller_Action
function replacehtml($html) function replacehtml($html)
{ {
$newString=preg_replace("/'/i", '´', $html); $newString = htmlentities($html, ENT_QUOTES, "UTF-8");
$newString=preg_replace("/\"/i", '"', $html);
return $newString; return $newString;
} }