GNOME Bugzilla – Bug 761090
Failed to set text from markup due to error parsing markup
Last modified: 2016-01-30 10:37:19 UTC
Description of problem: Failed to set text from markup due to error parsing markup Version-Release number of selected component (if applicable): 3.18.2 How reproducible: Always Steps to Reproduce: 1. search for new york <enter> 2. 3. Actual results: (org.gnome.Maps:7841): (org.gnome.Maps:9235): (org.gnome.Maps:10083): Gtk-WARNING **: Failed to set text 'New York, V&G Subdivision, Barangay 109-A, 6500, Tacloban, Leyte, Philippines' 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 & Expected results: no warnings printed due to failure of setting text from markup Additional info: I've got different line? numbers on different runs of gnome-maps while trying to reproduce this, hence the (org.gnome.Maps:xxxx):
Yes, This should be escaped, I thought we had code that did this. Will mark as gnome-love since it seems like a nice entry bug.
Created attachment 319744 [details] [review] Escape markup in search results and placebubble
Review of attachment 319744 [details] [review]: Thanks! Is there no common place for this to be done? Like the placeFormatter.js?
I tried that. It can be done but then placeBubble shows & since it uses placeFormatter differently. Also without this patch placebBubble skips the string entirely. For testing, search New York, V&G Subdivision, Barangay 109-A, 6500 and select last item. V Henry & carl Lomb drive .
Attachment 319744 [details] pushed as b6772c7 - Escape markup in search results and placebubble