php strip_tags

剥去字符串中的 HTML 标签:

<!DOCTYPE html>
<html>
<body>

<?php
echo strip_tags("Hello <b>world!</b>");
?>
  
</body>
</html>

 输出:  Hello world!

posted @ 2020-06-17 16:22  戈丫汝  阅读(134)  评论(0)    收藏  举报