# How to output description\_long without strip\_tags on listing

**URL:** https://forum.shopware.com/t/how-to-output-description-long-without-strip-tags-on-listing/58317
**Category:** International (English Only)
**Tags:** themes--design
**Created:** [28. Februar 2019 um 11:34 UTC](https://forum.shopware.com/t/how-to-output-description-long-without-strip-tags-on-listing/58317 "2019-02-28T11:34:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tommy48](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@tommy48](https://forum.shopware.com/u/tommy48)
#### Post date: [28. Februar 2019 um 11:34 UTC](https://forum.shopware.com/t/how-to-output-description-long-without-strip-tags-on-listing/58317/1 "2019-02-28T11:34:10Z")

</div>

I have overridden the&nbsp;frontend/listing/product-box/box-basic.tpl template, and chaged the following variable output:

```
{$sArticle.description_long|strip_tags|truncate:380}

```

to…

```
{$sArticle.description_long}

```

One would expect that the output would not be truncated and would include HTML tags, but the text&nbsp;has HTML stripped. It seems that HTML is stripped before being added as a page variable. Is there a way I can output the description including HTML tags?

---

<div class="post-metadata">

### Author: ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)
#### Post date: [28. Februar 2019 um 18:18 UTC](https://forum.shopware.com/t/how-to-output-description-long-without-strip-tags-on-listing/58317/2 "2019-02-28T18:18:31Z")

</div>

Which product box layout do you use for the category? For example if you’re using the list-layout Shopware is using the box-list.tpl.

However: One must not edit the template files directly because they might be overridden after an update. Always use the template inheritance system and create your own theme for modifications! [Developing Themes](https://developers.shopware.com/theme-guide/)

Regards

&nbsp;

---

<div class="post-metadata">

### Author: ![tommy48](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@tommy48](https://forum.shopware.com/u/tommy48)
#### Post date: [1. März 2019 um 09:22 UTC](https://forum.shopware.com/t/how-to-output-description-long-without-strip-tags-on-listing/58317/3 "2019-03-01T09:22:29Z")

</div>

Thanks for your response. I don’t think I’m using the wrong template though. I can successfully remove the description, and removing the truncate method has the desired effect. However, removing strip\_tags does nothing.

I have of course overridden the block as specified in the guide, in themes/Frontend/MyProject/frontend/listing/product-box/box-basic.tpl:

```
{extends file='parent:frontend/listing/product-box/box-basic.tpl'}

{* Product description override *}
{block name='frontend_listing_box_article_description'}
    
        {$sArticle.description_long}
    
{/block}

```

Using the above code, the test-class appears on the description element, inferring that it is overridden successfully. The description is no longer trucated. However, tags are still stripped from the content.

---

<div class="post-metadata">

### Author: ![M\_Heilmeier](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@M\_Heilmeier](https://forum.shopware.com/u/M_Heilmeier)
#### Post date: [14. Mai 2019 um 09:39 UTC](https://forum.shopware.com/t/how-to-output-description-long-without-strip-tags-on-listing/58317/4 "2019-05-14T09:39:49Z")

</div>

Got the same Problem here. Is there any solution to this?
