Escape html in gc_popups nicks
This commit is contained in:
parent
1a9d4690b0
commit
582fe8d972
|
@ -388,8 +388,9 @@ class GCTooltip(BaseTooltip):
|
||||||
if contact.jid.strip() != '':
|
if contact.jid.strip() != '':
|
||||||
jid_markup = '<span weight="bold">' + contact.jid + '</span>'
|
jid_markup = '<span weight="bold">' + contact.jid + '</span>'
|
||||||
else:
|
else:
|
||||||
jid_markup = '<span weight="bold">' + contact.get_shown_name() + \
|
jid_markup = '<span weight="bold">' + \
|
||||||
'</span>'
|
gtkgui_helpers.escape_for_pango_markup(contact.get_shown_name()) \
|
||||||
|
+ '</span>'
|
||||||
properties.append((jid_markup, None))
|
properties.append((jid_markup, None))
|
||||||
properties.append((_('Role: '), helpers.get_uf_role(contact.role)))
|
properties.append((_('Role: '), helpers.get_uf_role(contact.role)))
|
||||||
properties.append((_('Affiliation: '), contact.affiliation.capitalize()))
|
properties.append((_('Affiliation: '), contact.affiliation.capitalize()))
|
||||||
|
|
Loading…
Reference in New Issue