Home  >  Article  >  Backend Development  >  php中去除所有js,html,css代码_PHP

php中去除所有js,html,css代码_PHP

WBOY
WBOYOriginal
2016-06-01 12:17:44948browse
复制代码 代码如下:
$search = array ("'<script>]*?>.*?</script>'si", // 去掉 javascript
"''si", // 去掉 css
"']*?>'si", // 去掉 HTML 标记
"'
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