# Shopware 6 removes html tags from snippets

**URL:** <https://forum.shopware.com/t/shopware-6-removes-html-tags-from-snippets/102377>\
**Category:** Programming (EN)\
**Created:** [27. Dezember 2023 um 12:32 UTC](https://forum.shopware.com/t/shopware-6-removes-html-tags-from-snippets/102377 "2023-12-27T12:32:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yurii.k](https://avatars.discourse-cdn.com/v4/letter/y/90ced4/32.png) [@yurii.k](https://forum.shopware.com/u/yurii.k)\
**Post date:** [27. Dezember 2023 um 12:32 UTC](https://forum.shopware.com/t/shopware-6-removes-html-tags-from-snippets/102377/1 "2023-12-27T12:32:20Z")

</div>

Hi! When I’m adding LI-tag to the snippet - SW removes this tag after saving. But tag A-tag works fine. How can I save LI-tags in the snippet as well?

---

<div class="post-metadata">

**Author:** ![PatrickHoelscher](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/patrickhoelscher/32/21102_2.png) [@PatrickHoelscher](https://forum.shopware.com/u/PatrickHoelscher)\
**Post date:** [27. Dezember 2023 um 13:41 UTC](https://forum.shopware.com/t/shopware-6-removes-html-tags-from-snippets/102377/2 "2023-12-27T13:41:12Z")

</div>

Hey @yurii.k  
this probably happens due to the html\_sanitizer.  
[Shopware 6 - Tutorials & FAQs - HTML Sanitizer](https://docs.shopware.com/en/en/shopware-6-en/html-sanitizer)

You will need to whitelist the LI-tags in your z-shopware.yaml for snippets.  
This would look something like this:

```auto
shopware:
    html_sanitizer:
        sets:
            - name: snippet
                tags: ["LI"]
                attributes: ["...", "...", "..."]
                options:
                    - key: HTML.Trusted
                      value: true
                    - key: CSS.Trusted
                      value: true

```

You will just need to add the attributes that you also want to use with the LI-tags 🙂
