Prevent sanitizing html-code when saving product

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. 

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

Thanks a lot!

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 );
1 „Gefällt mir“

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. 

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

@odessite schrieb:

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 );