- Issue created by @makbay
- Merge request !31Issue #3488192: Example YAML configuration breaks menu item edit form when... → (Open) created by makbay
The configuration form of the *Menu Link Attributes* module includes an example YAML configuration displayed to users. The example is rendered without escaping, causing < and > characters to appear as is.
If a user copies the unescaped example and pastes it directly into the configuration textarea, the resulting configuration is breaking the menu item editing pages, causing unexpected behavior and potential usability issues.
Observed behavior:
Menu editing pages fail to render properly due to invalid or unsafe configurations.
Expected behavior:
The provided example YAML code should be escaped to ensure safe usage when copied and pasted.
Html::escape()
to ensure all characters like <
and >
are rendered safely.
No significant UI changes. The example YAML content will now be rendered in its escaped form, visually identical but safe for copying and pasting.
No API changes introduced.
No changes to the data model.
Active
1.0
Code