帝国ECMS内容简介在内容模板中调用smalltext过滤简介中的空格、换行符等,全网唯一能用的代码:
在内容页需要调用内容简介的地方直接加上上面的代码即可
并在字段管理中 将 回车替换成换行符 支持html代码 选上
<? $smalltext=str_replace(' ','',$navinfor[smalltext]); $smalltext=str_replace(' ', '', $smalltext); $smalltext=str_replace(' ', '', $smalltext); $smalltext=str_replace(' ', '', $smalltext); $smalltext=str_replace('"', '', $smalltext); $smalltext=str_replace('<', '', $smalltext); $smalltext=str_replace('>', '', $smalltext); $smalltext=str_replace('&#39;', '', $smalltext); $smalltext=str_replace(''', '', $smalltext); $smalltext=str_replace('&', '', $smalltext); $smalltext=str_replace(' ', '', $smalltext); $smalltext=str_replace('“', '', $smalltext); $smalltext=str_replace('”', '', $smalltext); $smalltext=str_replace('middot;', '', $smalltext); $smalltext=str_replace('—', '', $smalltext); echo $smalltext; ?> |
并在字段管理中 将 回车替换成换行符 支持html代码 选上
文章来源:
网络小编D
版权声明:
本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,请联系本站立刻删除。