# FAQ

Ab Shopware 6.5 hat Shopware einen sog. HTML Sanitizer integriert, sodass nur noch sehr wenige Textformatierungen und zusätzliche Attribute möglich sind. Im Standard kann das "data-neti-modal-id" nicht genutzt werden, da es nach der Eingabe und speichern von Shopware gefiltert wird.

Um dennoch die Attribute setzen zu können:

  • erstelle eine Datei "shopware_modal_sanitizer_disable.yaml"
  • füge den Code ein:
shopware:
  html_sanitizer:
    sets:
      - name: basic
        tags: ["a"]
        attributes: ["data-neti-modal-id","data-neti-modal-group"]
        custom_attributes:
          - tags: ["a"]
            attributes: ["data-neti-modal-id","data-neti-modal-group"]
1
2
3
4
5
6
7
8
9
  • lade die Datei auf den Server unter "config/packages"
  • lösche den Cache via console: bin/console cache:clear oder in der Administration

Alternativ kann der Sanitizer auch komplett deaktiviert werden.

shopware:
    html_sanitizer:
        enabled: false
1
2
3

Mehr Information findest du hier:

  • Shopware Dokumentation: https://docs.shopware.com/de/shopware-6-de/tutorials-und-faq/html-sanitizer#deaktivieren-des-html-sanitizer
  • Shopware Konfiguration: vendor/shopware/core/Framework/Resources/config/packages/shopware.yaml