Skip to content

Conversation

@burhandodhy
Copy link
Contributor

@burhandodhy burhandodhy commented Jan 26, 2026

Description of the Change

This PR fixes an issue where special characters in taxonomy labels were displayed as encoded HTML instead of rendering correctly.

image

Closes #4271

How to test the Change

Register a taxonomy with Special Character within the label, like esc_html__( 'Check & Radio', 'elasticpress' )

Changelog Entry

Fixed - Instant Results displayed special characters as HTML encoded text.

Credits

Props @burhandodhy @wparslans

Checklist:

@burhandodhy burhandodhy added this to the 5.3.3 milestone Jan 26, 2026
@wparslans
Copy link

wparslans commented Jan 27, 2026

Awesome @burhandodhy
I have tested it with a category which contains ' and "
image
Although it doesn't work in this case, as by default wp_specialchars_decode has ENT_NOQUOTES it should be set to ENT_QUOTES to deal with qoutes.
image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: & sign is HTML escaped or character entity encoded

2 participants