一些实用函数 :去除html标签//去除空白//截取汉字
$subject = strip_tags($newsRs['content']);//去除html标签
$pattern = '/\s/';//去除空白
$content = preg_replace($pattern, '', $subject);
$seodata['articledescription'] = mb_substr($content, 0, 80);//截取80个汉字