修改了单双引号转义的逻辑
This commit is contained in:
parent
5b2f3278c2
commit
08e0da7935
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue