我得到了这样简单的代码:
private function edit_keywords($text)
{
$tresc = str_replace("\n","",$text);
$tresc = str_replace("\r","",$text);
if(strpos($text,'"')!==FALSE)
{
array_push($this->warnings,"Not allowed character found in keywords \".");
return;
}
目前这将阻止“进入我也想阻止”。如何做到这一点?
替换 ' 也可以。