1.PHP去除内容图片
$content = preg_replace("#(<img(.*?)/?>|<script(.*?)>(.*?)</script>)#i", "", $content);
2.去除html标签
$content = strip_tags($content);
1.PHP去除内容图片
$content = preg_replace("#(<img(.*?)/?>|<script(.*?)>(.*?)</script>)#i", "", $content);
2.去除html标签
$content = strip_tags($content);