# FAQ

As of Shopware 6.5, Shopware has integrated a so-called HTML sanitizer, so that only very limited text formatting and additional attributes are possible. In the standard version, the “data-neti-modal-id” cannot be used because it is filtered by Shopware after it has been entered and saved.

In order to still be able to set the attributes:

  • create a file "shopware_modal_sanitizer_disable.yaml"
  • paste the code:
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
  • upload the file to the server under "config/packages"
  • clear the cache via console: bin/console cache:clear or in the administration

Alternatively, the sanitizer can also be deactivated completely.

shopware:
     html_sanitizer:
         enabled: false
1
2
3

You can find more information here:

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