kozec / syncthing-gtk

GTK3 & python based GUI for Syncthing
GNU General Public License v2.0
1.29k stars 140 forks source link

[TASK] Improve html entity encoding #539

Closed TechupBusiness closed 4 years ago

TechupBusiness commented 4 years ago

This makes it more robust and properly implemented :)

Because I still got errors in the log even though it was not visible in the GUI.

Okt 29 23:39:41 ubuntu syncthing-gtk[3538]: Failed to set text '<span color="white" font_weight="bold" font_size="large">Memories/Persons & Pets</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;
TechupBusiness commented 4 years ago

@kozec And here a small improvement :)

kozec commented 4 years ago

Merged, thanks :)