例子
代码如下 |
|
$a ="//si";
$keyword = preg_replace($a,' ',$_POST['searchword']);
代码如下 |
|
$a ="//si";
$keyword = preg_replace($a,' ',$_POST['searchword']);
|
|
其它方法
代码如下 |
|
$title="";
$title = strip_tags($title);
if(preg_match('/|<script>(.*)</script>|/',$title,$info)){
$title=$info['1'];
}else{
$title = $title;
}
echo $title;
代码如下 |
|
$title="";
$title = strip_tags($title);
if(preg_match('/|<script>(.*)</script>|/',$title,$info)){
$title=$info['1'];
}else{
$title = $title;
}
echo $title;
|
|
http://www.bkjia.com/PHPjc/372609.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/372609.htmlTechArticleThe example code is as follows $a =/script[^]*?.*?/script/si; $keyword = preg_replace($a,' ',$_POST['searchword']); Other method codes are as follows?php $title=stylessss{'float:right'}/style; $titl...