Skip to content

Allow HTML in navigation block link labels #57788

Open

Description

Description

In the classic menu screen, users can add HTML in the link label field.
In the label of the navigation block's inner blocks, HTML is stripped.

This is unexpected for users who expects feature parity between the two menu systems.

Step-by-step reproduction instructions

Add a navigation block.
Add or select any link.
In the settings panel of the link, try to add HTML inside the label field, for example:
<b>Sample Page</b>

Confirm that the characters are deleted as you try to type in the tag.

Screenshots, screen recording, code snippet

64-link-label.mp4

Environment info

WP 6.4.2, with and without Gutenberg trunk

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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