nate-xyz / resonance

Intuitive GTK4/LibAdwaita music player
https://beta.flathub.org/apps/io.github.nate_xyz.Resonance
GNU General Public License v3.0
372 stars 21 forks source link

Ampersands are not escaped in markup fields #121

Open detjensrobert opened 1 year ago

detjensrobert commented 1 year ago

Artist and album names with an ampersand are not rendered correctly under the main tabs, and the circle is left blank.

image (First blank should be Sasha & BT, the second blank is Cause & Effect)

Logs show that &s are not being escaped:

Failed to set text '<span weight="book" size="large">Cause & Effect</span>' 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 &amp;