-
-
Notifications
You must be signed in to change notification settings - Fork 616
Open
Description
Bug description
In the instructions for a field you can use markdown. When I add a html link in the instructions, it now gets sanitised and some of the (essential) attributes are removed.
I expect the instructions to stay untouched. Is it possible to not sanitise the field instructions, because it is from a safe source?
Introduced in #14006. See the markdown function in resources/js/bootstrap/globals.js.
How to reproduce
Add a link to the instructions for a field and add attributes like target and onclick for example:
<a href="/some/page" target="_blank" onclick="doSomeImportantStuff();">link</a>
It will be rendered as:
<a href="/some/page">link</a>
Logs
Environment
Environment
Laravel Version: 11.48.0
PHP Version: 8.3.29
Composer Version: 2.9.3
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: Europe/Amsterdam
Locale: nl
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: null
Cache: file
Database: mysql
Logs: stack / single
Mail: log
Queue: sync
Session: file
Statamic
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.73.11 PROInstallation
Fresh statamic/statamic site via CLI
Additional details
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels