# Prevent sanitizing html-code when saving product

**URL:** https://forum.shopware.com/t/prevent-sanitizing-html-code-when-saving-product/70286
**Category:** International (English Only)
**Tags:** programming
**Created:** [19. Oktober 2020 um 09:49 UTC](https://forum.shopware.com/t/prevent-sanitizing-html-code-when-saving-product/70286 "2020-10-19T09:49:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Raamdec](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@Raamdec](https://forum.shopware.com/u/Raamdec)
#### Post date: [19. Oktober 2020 um 09:49 UTC](https://forum.shopware.com/t/prevent-sanitizing-html-code-when-saving-product/70286/1 "2020-10-19T09:49:20Z")

</div>

Hi,

In my webshop I’m using a custom product configurator that pushes data into the product fields. I added read more/less code and functionality into the long description, it works great in the cart until I go to the backend and press “Save” on the product. The entire HTML breaks and the read more/less stop working.&nbsp;

Someone told me it might be Shopware’s HTML&nbsp;sanitizing in the backend, does anyone know if this is the issue and if so, what the solution here could be.&nbsp;

Thanks a lot!

---

<div class="post-metadata">

### Author: ![odessite](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@odessite](https://forum.shopware.com/u/odessite)
#### Post date: [10. November 2020 um 15:04 UTC](https://forum.shopware.com/t/prevent-sanitizing-html-code-when-saving-product/70286/2 "2020-11-10T15:04:27Z")

</div>

[https://docs.shopware.com/en/shopware-5-en/settings/system#input-filter](https://docs.shopware.com/en/shopware-5-en/settings/system#input-filter)

check this plugin, it’s enabled by default.

```
 $this-\>subscribeEvent( **'Enlight\_Controller\_Front\_RouteShutdown'** , **'onRouteShutdown'** , -100 );
```

---

<div class="post-metadata">

### Author: ![Raamdec](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@Raamdec](https://forum.shopware.com/u/Raamdec)
#### Post date: [12. November 2020 um 09:07 UTC](https://forum.shopware.com/t/prevent-sanitizing-html-code-when-saving-product/70286/3 "2020-11-12T09:07:40Z")

</div>

Thanks for your reply!

Do you know how it can be disabled in the backend? In the frontend it’s good that all filters are on, but in the backend it shouldn’t be happening.&nbsp;

(I’m not very technical with this kind of stuff)

[@odessite schrieb:](https://forum.shopware.com/profile/24694/odessite "odessite")

[https://docs.shopware.com/en/shopware-5-en/settings/system#input-filter](https://docs.shopware.com/en/shopware-5-en/settings/system?&_ga=2.241252736.329311847.1605166020-419774404.1598255984#input-filter)

check this plugin, it’s enabled by default.

```
 $this-\>subscribeEvent( **'Enlight\_Controller\_Front\_RouteShutdown'** , **'onRouteShutdown'** , -100 );
```
