Ampersands in the Location cause Location to not be displayed in popover preview widget
Affected version
ArchLinux GNOME Calendar 41.2
Bug summary
If the Location of an event contains an ampersand '&', it is not parsed correctly and is not displayed in the main view when clicking on an event. It is displayed correctly in the edit view.
Error in the logs:
Failed to set text 'X & Y' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &
Steps to reproduce
- Set the location of an event to include an ampersand character
- Go back to the main view and click on the event
- Observe that the "Location" heading is visible, but the location itself it not
What happened
Attempted to parse the location name as markup when there is no indication it does that in the UI.
What did you expect to happen
For the location to be treated as plain text. Especially since the event that caused the issue for me was imported from CalDAV which doesn't provide markup by default.