帝国CMS内容页文章字数统计
<?=strlen($navinfor[newstext])?>
统计:8022 个字
<?=strlen(strip_tags($navinfor[newstext]))?>
加上过滤后
统计:1559 个字
<?=strlen(htmlspecialchars(strip_tags(str_replace(' ','',str_replace('“','',str_replace('”','',$navinfor[newstext]))))))?>
加上空格等过滤后
统计:1217 个字
<?=strlen(htmlspecialchars(strip_tags(str_replace(' ','',str_replace('“','',str_replace('”','',str_replace(egetzy('rn'),'',str_replace(egetzy('<br />'),'',$navinfor[newstext]))))))))?>
加上空格等+html标签等过滤后
统计:1141 个字
声明:资源来自网络转载,版权归原作者所有,与本站立场无关,如不慎侵犯了你的权益,请联系我们告知,将做删除处理!
原文地址:《帝国CMS内容页文章字数统计》发布于2021-07-03 18:04:41