{dede:sql runphp='yes' sql='Select content from dede_arctype where id=10'} [field:content function="cn_substr(@me,180)"/] {/dede:sql} 使用cn_substr函数即可实现截串。 Html2text()函数是去掉html标签代码。 参考代码: 转载于:https://blog.51cto.com/okowo/1322354