strip_tags() 函数用于从字符串中去除 HTML 和 Php 标记。
strip_tags(string $string, string $allowable_tags = null)
string
- 要去除标签的字符串。
allowable_tags
- 一个可选的字符串,指定要保留的标签。默认情况下,所有标签都将被去除。
本文地址:https://www.qianwe.com/article/9df80fd0482ff9af1da8.html