Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 tpl 文件中,我有这部分代码显示一个字符串:
{l s='blabla' mod='module'}
我想html_entity_decode在显示之前将该函数应用于该字符串。
html_entity_decode
请问这个怎么处理?
谢谢!
{capture assign="foobar"}{l s='blabla' mod='module'}{/capture} {$foobar|unescape:"htmlall"}
我不确定修饰符 unescape 在 Smarty2 中是否可用。从(至少)Smarty3.1 开始