这应该工作。@使smarty对整个数组运行修饰符,否则对每个元素执行修饰符。
{$myarray|@json_enpre}如果启用$
escape_html,则需要使用
nofilter:
{$myarray|@json_enpre nofilter}
这应该工作。@使smarty对整个数组运行修饰符,否则对每个元素执行修饰符。
{$myarray|@json_enpre}如果启用$
escape_html,则需要使用
nofilter:
{$myarray|@json_enpre nofilter}