Skip to content

Fix: Taxonomy label were encoded in Instant Results - #4276

Merged
felipeelia merged 3 commits into
developfrom
fix/4271
Feb 6, 2026
Merged

Fix: Taxonomy label were encoded in Instant Results#4276
felipeelia merged 3 commits into
developfrom
fix/4271

Conversation

@burhandodhy

@burhandodhy burhandodhy commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

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

wparslans commented Jan 27, 2026

Copy link
Copy Markdown

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

@felipeelia
felipeelia merged commit c20b835 into develop Feb 6, 2026
60 of 62 checks passed
@felipeelia
felipeelia deleted the fix/4271 branch February 6, 2026 18:36
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

3 participants