Home  >  Article  >  Backend Development  >  php除开html标签

php除开html标签

WBOY
WBOYOriginal
2016-06-13 11:10:24872browse

php去除html标签
有段HTML是这样的

<br /><p><span>......</span></p><br />

我用函数strip_tags($str,"

")去除HTML代码,但是去除不了的标签,请问有什么办法保留

标签去除标签吗?万分感谢!!

PHP strip_tags
------解决方案--------------------
你的代码不可以?

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