Skip to content

Fix #1383: decode HTML entities in calendar event titles#1384

Open
maxliesegang wants to merge 1 commit into
verdigado:mainfrom
maxliesegang:fix/1383-calendar-title-encoding
Open

Fix #1383: decode HTML entities in calendar event titles#1384
maxliesegang wants to merge 1 commit into
verdigado:mainfrom
maxliesegang:fix/1383-calendar-title-encoding

Conversation

@maxliesegang

Copy link
Copy Markdown
Contributor

Manually created events store their title HTML-encoded in post_title (e.g. "&"), and the calendar renders titles as plain text (textContent), so the entity was shown literally. Decode the title in the AJAX handler with wp_specialchars_decode(). Imported events are unaffected since their titles are stored unencoded.

Manually created events store their title HTML-encoded in post_title
(e.g. "&"), and the calendar renders titles as plain text
(textContent), so the entity was shown literally. Decode the title in
the AJAX handler with wp_specialchars_decode(). Imported events are
unaffected since their titles are stored unencoded.
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.

1 participant