# Google Shopping Feed - HTML / CSS aus description extrahieren

**URL:** <https://forum.shopware.com/t/google-shopping-feed-html-css-aus-description-extrahieren/89774>\
**Category:** Sonstiges\
**Tags:** shopping-worlds\
**Created:** [16. August 2021 um 07:38 UTC](https://forum.shopware.com/t/google-shopping-feed-html-css-aus-description-extrahieren/89774 "2021-08-16T07:38:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![schuetz1](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@schuetz1](https://forum.shopware.com/u/schuetz1)\
**Post date:** [16. August 2021 um 07:38 UTC](https://forum.shopware.com/t/google-shopping-feed-html-css-aus-description-extrahieren/89774/1 "2021-08-16T07:38:39Z")

</div>

Hallo Community,

ich habe über einen Channel in Shopware 6 einen Google Shopping Feed erstellt und diesen im Google Merchant Center eingereicht. Leider erhalte ich dort die Fehlermeldung „_Artikel zu groß_“. Grund hierfür ist, dass Shopware mir im Feed das gesamte HTML mit reinpackt. Das wird von Google aber leider nicht akzeptiert.

In der Feedeinstellug im Shopware Backend habe ich folgende Zeile für die description:  
`<description>{{ product.translated.description|escape }}</description>`

Kann mir jemand helfen, wie ich diese Zeile mit RegEx / Befehlen anpassen muss, dass kein HTML mehr an den Feed übergeben wird? Das würde mir sehr weiterhelfen.

Anbei ein Screenshot wie es ausgegeben wird mit HTML.

 ![Bildschirmfoto 2021-08-16 um 09.37.18](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/6/63762961503e9e848c53b7dbfb3bc73226abc546.jpeg)

Viele Grüße  
Karsten

---

<div class="post-metadata">

**Author:** ![AlexGalax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/alexgalax/32/9925_2.png) [@AlexGalax](https://forum.shopware.com/u/AlexGalax)\
**Post date:** [16. August 2021 um 08:06 UTC](https://forum.shopware.com/t/google-shopping-feed-html-css-aus-description-extrahieren/89774/2 "2021-08-16T08:06:10Z")

</div>

Mit der Funktion `striptags` kannst du HTML-Tags entfernen.  
[https://twig.symfony.com/doc/3.x/filters/striptags.html](https://twig.symfony.com/doc/3.x/filters/striptags.html)

---

<div class="post-metadata">

**Author:** ![schuetz1](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@schuetz1](https://forum.shopware.com/u/schuetz1)\
**Post date:** [16. August 2021 um 08:08 UTC](https://forum.shopware.com/t/google-shopping-feed-html-css-aus-description-extrahieren/89774/3 "2021-08-16T08:08:18Z")

</div>

Hallo AlexGalax,  
danke dir, das hat geklappt. Folgende Zeile habe ich eingefügt, dann wurde nur noch der Text angezeigt ohne HTML:

`<g:description>{{ product.translated.description|striptags|escape }}</g:description>`
