Jump to content

$product_manufacturer->description without HTML


Recommended Posts

Hi,

I'm looking for displaying brand name, logo and description on my product.tpl page.
I managed to display these information :

<h2>About {$product_manufacturer->name}</h2>
{if isset($manufacturer_image_url)}
  <img src="{$manufacturer_image_url}" class="img img-thumbnail manufacturer-logo" alt="{$product_manufacturer->name}">
{/if}   
{$product_manufacturer->description}

but the description appears with HTML tags, e.g. "<p>Lorem ipsum<br />dolor sit amet</p>"...

And if I set a strip_tags :

{$product_manufacturer->description|strip_tags}

There are not line break anymore.

Does anyone know how to display manufacturer description without HTML tags but keeping the formatting ?

 

Thanks a lot !

Link to comment
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...