后端开发|php教程
str,replace,preg,lt,gt
后端开发-php教程
复制代码 代码如下:
404wap源码,vscode怎么引入c语言,ubuntu内核损坏,获取tomcat中数据,go语音爬虫,php获取a标签内容,随州白酒seo推广哪里好,网站登陆窗口html源码下载,cctv模板lzw
$str=preg_replace(“/\s+/”, ” “, $str); //过滤多余回车
$str=preg_replace(“/<[ ]+/si","<",$str); //过滤<__("<"号后面带空格)
$str=preg_replace(“//si”,””,$str); //注释
$str=preg_replace(“//si”,””,$str); //过滤DOCTYPE
$str=preg_replace(“//si”,””,$str); //过滤html标签
$str=preg_replace(“//si”,””,$str); //过滤head标签
$str=preg_replace(“//si”,””,$str); //过滤meta标签
$str=preg_replace(“//si”,””,$str); //过滤body标签
$str=preg_replace(“//si”,””,$str); //过滤link标签
$str=preg_replace(“//si”,””,$str); //过滤form标签
$str=preg_replace(“/cookie/si”,”COOKIE”,$str); //过滤COOKIE标签
$str=preg_replace(“/(.*?)/si”,””,$str); //过滤applet标签
$str=preg_replace(“//si”,””,$str); //过滤applet标签
$str=preg_replace(“/(.*?)/si”,””,$str); //过滤style标签
$str=preg_replace(“//si”,””,$str); //过滤style标签
$str=preg_replace(“/(.*?)/si”,””,$str); //过滤title标签
$str=preg_replace(“//si”,””,$str); //过滤title标签
$str=preg_replace(“/(.*?)/si”,””,$str); //过滤object标签
$str=preg_replace(“//si”,””,$str); //过滤object标签
$str=preg_replace(“/(.*?)/si”,””,$str); //过滤noframes标签
$str=preg_replace(“//si”,””,$str); //过滤noframes标签
$str=preg_replace(“/(.*?)/si”,””,$str); //过滤frame标签
$str=preg_replace(“//si”,””,$str); //过滤frame标签
$str=preg_replace(“/(.*?)/si”,””,$str); //过滤script标签
$str=preg_replace(“//si”,””,$str); //过滤script标签
$str=preg_replace(“/javascript/si”,”Javascript”,$str); //过滤script标签
$str=preg_replace(“/vbscript/si”,”Vbscript”,$str); //过滤script标签
$str=preg_replace(“/on([a-z]+)\s*=/si”,”On\\1=”,$str); //过滤script标签
$str=preg_replace(“/&#/si”,”&#”,$str); //过滤script标签,如javAsCript:alert(
locale 源码,多人协同开发工具vscode,ubuntu 判断桌面,开源tomcat爆破工具,搜索python爬虫,php漂浮广告代码,沈阳seo推广营销信息流,网站扒皮者 请检查本地时间lzw
以上就介绍了 php正则过滤html标签、空格、换行符的代码附说明,包括了方面的内容,希望对PHP教学有兴趣的朋友有所帮助。
中学校友管理系统源码,ubuntu解决图像花屏,tomcat启动端口不正确,王者荣耀爬虫实力,php入门到精通视频下载,seo建站投放lzw