问个SMARTY问题。
请问SMARTY中如何去掉 “内容中”中的/本文来源gaodai#ma#com搞*!代#%^码网%搞代gaodaima码空白。
我使用了trim 和 strip 都是将两旁的空格去掉了。可以内容中的去不掉。
我执行的顺序如下。
- PHP code
<!---ecms Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> <!---ecms [assign var="Row_Content" value=$Row.Content|trim]--> 用去掉左右空白 <!---ecms [assign var="Row_Content" value=$Row_Content|strip_tags]--> 去掉html标签 <!---ecms [$Row_Content|truncate_utf8:187:".."]--> 截取字符串
——解决方案——————–
为什么不在php处理完了之后再传给smarty??