Home >php教程 >php手册 >PHP 自定义函数:清除页面所有js,html,css代码

PHP 自定义函数:清除页面所有js,html,css代码

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:40:25887browse

PHP 自定义函数:清除页面所有js,html,css代码

  1. $search = array ("<script>]*?>.*?</script>si", // 去掉 javascript
  2. "si", // 去掉 css
  3. "]*?>si", // 去掉 HTML 标记
  4. "
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn