malike 发表于 2018-2-11 12:10:42


            本文介绍了PHP strip_tags函数保留多个HTML标签的方法,可以使用第二个参数来设置不需要删除的标签,主要涉及到strip_tags的第二个参数
strip_tags 函数
语法
string strip_tags ( string str [, string allowable_tags] )
返回一个去除了HTML标签的字符串;可以使用第二个参数来设置不需要删除的标签。
使用方法:
前提:假如现在有这样一个字符串,
复制代码 代码如下:
页: [1]
查看完整版本: PHP strip_tags保留多个HTML标签的方法