0

在我的 tpl 文件中,我有这部分代码显示一个字符串:

{l s='blabla' mod='module'}

我想html_entity_decode在显示之前将该函数应用于该字符串。

请问这个怎么处理?

谢谢!

4

1 回答 1

0
{capture assign="foobar"}{l s='blabla' mod='module'}{/capture}
{$foobar|unescape:"htmlall"}

我不确定修饰符 unescape 在 Smarty2 中是否可用。从(至少)Smarty3.1 开始

于 2012-07-24T06:57:00.217 回答