PHP之标签过滤器,清除字符串标签
function clearHtml($content ,$arr='cn') { $content = preg_replace("/<img[^>]*>/i", "", $content); $content = preg_replace("/<\/img>/i", "", $content); $content = preg_replace("/<a[^>]*>/i", "", $content); $content =
原创
2021-01-29 11:19:25 ·
179 阅读 ·
0 评论