[prestashop]:HTML渲染不好

时间:2017-09-15 11:05:48

标签: smarty prestashop prestashop-1.7

我使用智能来显示一大堆html代码。

我的问题是它不能解释我的HTML代码。

有我的代码

<dl class="accordion">
    {foreach $faqs as $allfaq}
        <dt><a href="">{$allfaq.question_post}</a></dt>
        <dd>
            {$allfaq.content|escape:'htmlall':'UTF-8'}
        </dd>
    {/foreach}
</dl>

这就是结果:

enter image description here

1 个答案:

答案 0 :(得分:0)

添加nofilter过滤器:

{$allfaq.content nofilter}