Jump to content

$product_manufacturer->description without HTML

Recommended Posts


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}">

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

And if I set a 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 !

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