Jump to content

[RESOLVED] Product list show product description with HTML


Recommended Posts

Posted (edited)

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}

 

Edited by Diemux
Added resolved tag (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More