Home > Backend Development > PHP Tutorial > 请问一个正则(急)

请问一个正则(急)

WBOY
Release: 2016-06-13 10:13:09
Original
1033 people have browsed it

请教一个正则(急)
验证一串文本中是否有HTML标签 (如一般的HTML标签
..经常会用的)

------解决方案--------------------
book怎么有带有两个,没搞错吧?

PHP code
if(strip_tags($string,'<sex><book>') !== $string){  echo "有html标签";}<div class="clear">
                 
              
              
        
            </div></book></sex>
Copy after login

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template