diff --git a/src/groupchat_window.py b/src/groupchat_window.py index f77ef3926..f03e28144 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -201,9 +201,8 @@ class GroupchatWindow(chat.Chat): break subject = self.subjects[new_jid] - # escape chars when necessary - subject = subject.replace('&', '&') - new_jid = new_jid.replace('&', '&') + subject = gtkgui_helpers.escape_for_pango_markup(subject) + new_jid = gtkgui_helpers.escape_for_pango_markup(new_jid) name_label = self.name_labels[new_jid] name_label.set_markup('%s\n%s' % (new_jid, subject))