Skip to content

Dictionary fieldtype now escapes labels #13844

@JonKaric

Description

@JonKaric

Bug description

In v6, this might be a bug or an undocumented breaking change. I haven't source dived.

When creating a custom dictionary, the getItemLabel contents are now escaped somewhere down the line, disabling the ability to provide custom HTML/SVG.

How to reproduce

Feel free to try with this dictionary in v6:

composer require fawnsoftware/statamic-payment-icons:dev-main

Logs

Environment

Environment
Application Name: Statamic
Laravel Version: 12.50.0
PHP Version: 8.4.15
Composer Version: 2.9.2
Environment: local
Debug Mode: ENABLED
URL: gaia.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 1
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.2.4 PRO

Statamic Addons
fawnsoftware/statamic-payment-icons: dev-main

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions