Escape html in gc_popups nicks

This commit is contained in:
Jean-Marie Traissard 2006-06-25 20:01:40 +00:00
parent 1a9d4690b0
commit 582fe8d972
1 changed files with 3 additions and 2 deletions

View File

@ -388,8 +388,9 @@ class GCTooltip(BaseTooltip):
if contact.jid.strip() != '':
jid_markup = '<span weight="bold">' + contact.jid + '</span>'
else:
jid_markup = '<span weight="bold">' + contact.get_shown_name() + \
'</span>'
jid_markup = '<span weight="bold">' + \
gtkgui_helpers.escape_for_pango_markup(contact.get_shown_name()) \
+ '</span>'
properties.append((jid_markup, None))
properties.append((_('Role: '), helpers.get_uf_role(contact.role)))
properties.append((_('Affiliation: '), contact.affiliation.capitalize()))