Jump to content

Edit History

Diemux

Diemux


Added resolved tag

We are using a custom theme, we used to be able to show HTML in the short description by removing strip_tags from:

                    <div class="product-description">
                        {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}
                    </div>

so that becomes:

                    <div class="product-description">
                        {$product.description_short}
                    </div>

But now I just see the description with the HTML tags written out as text:

<p>Lorem ipsum<br /><br />random text to test</p>

What am I missing? Is there some JS I need to alter? Can't find anything in the theme JS.

 

SOLUTION: ADD "nofilter" tag as below:

{$product.description_short nofilter}

 

Diemux

Diemux

We are using a custom theme, we used to be able to show HTML in the short description by removing strip_tags from:

                    <div class="product-description">
                        {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}
                    </div>

so that becomes:

                    <div class="product-description">
                        {$product.description_short}
                    </div>

But now I just see the description with the HTML tags written out as text:

<p>Lorem ipsum<br /><br />random text to test</p>

What am I missing? Is there some JS I need to alter? Can't find anything in the theme JS.

×
×
  • Create New...