加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

剥离标签和PHP之间的所有内容?

发布时间:2020-12-13 16:37:09 所属栏目:PHP教程 来源:网络整理
导读:我将如何去除脚本标签,以及其中的所有内容使用 PHP? 正如David所说,如果您正在寻找消毒传入的数据,则仅过滤脚本标签是不够的. HTML Purifier承诺做全包: HTML Purifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will
我将如何去除脚本标签,以及其中的所有内容使用 PHP?
正如David所说,如果您正在寻找消毒传入的数据,则仅过滤脚本标签是不够的. HTML Purifier承诺做全包:

HTML Purifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited,secure yet permissive whitelist,it will also make sure your documents are standards compliant,something only achievable with a comprehensive knowledge of W3C’s specifications.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读