Home  >  Article  >  Backend Development  >  php filter html tags

php filter html tags

WBOY
WBOYOriginal
2016-07-25 08:46:09851browse
  1. /**
  2. * Filter the html tags in the string
  3. *
  4. * @param string $string The string to be converted
  5. * @return string
  6. */
  7. static public function strip_tags ( $string )
  8. {
  9. return strip_tags ( $string );
  10. }
Copy code

php, 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