Merge pull request #101 from monsta/patch-2
[Backports] Escape ampersand in app names and comments
This commit is contained in:
commit
96f4e2c784
@ -176,7 +176,7 @@ class easyButton( Gtk.Button ):
|
|||||||
def addLabel( self, text, styles = None ):
|
def addLabel( self, text, styles = None ):
|
||||||
label = Gtk.Label()
|
label = Gtk.Label()
|
||||||
if "<b>" in text or "<span" in text:
|
if "<b>" in text or "<span" in text:
|
||||||
label.set_markup(text) # don't remove our pango
|
label.set_markup(text.replace('&', '&')) # don't remove our pango
|
||||||
else:
|
else:
|
||||||
label.set_text(text)
|
label.set_text(text)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user