首页 > 解决方案 > 如何使用 smarty 显示特殊字符,例如 '%'?

问题描述

我正在设计一个 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>

标签: smartyprestashop-1.7

解决方案


thk 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.'>它有效


推荐阅读