我正在设计一个prestashop主题,但是我的smarty模板引擎有问题。
我写了一个带有特殊字符'%'的文本,但是什么也不显示。
<p>
{l s='Save hundreds of hours of manual work, be more productive and impress your audience with visually appealing slides that are 100% editable.' d='Shop.Theme.Global'}
</p>
答案 0 :(得分:0)
尝试为%添加HTML代码,并使用智能管道来转义HTML字符。
{l s='Save hundreds of hours of manual work, be more productive and impress your audience with visually appealing slides that are 100% editable.'|escape:'html' }
答案 1 :(得分:0)
Melvita,但我提出了%%。<l s='Save hundreds of hours of manual work, be more productive and impress your audience with visually appealing slides that are 100%% editable.'>
可以解决