dongsuichi6529 2017-01-26 10:56
浏览 57
已采纳

Prestashop和Smarty

i have problem with smarty templating on Prestashop.

I want to echo product description with html tags (wysiwyg) but it gives me string with striped html tag or nothing.

{$product.description_short|unescape|strip_tags:false}

unescape and strip_tags:false not change anything. String is still striped. Using only {$product.description_short} display nothing.

i try to use {php} {/php} but then everything i get is 500 error.

This is on listing .tpl

On single product view description works fine with that code {$product->description_short}

  • 写回答

1条回答 默认 最新

  • dplece1882 2017-01-26 11:21
    关注

    If I understand what do you want, have you tried this:

    {$product.description_short|escape:'htmlall':'UTF-8'}
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?