diff --git a/main/src/ui/occupant_menu/view.vala b/main/src/ui/occupant_menu/view.vala
index ebad6f09..428d2c99 100644
--- a/main/src/ui/occupant_menu/view.vala
+++ b/main/src/ui/occupant_menu/view.vala
@@ -66,9 +66,9 @@ public class View : Popover {
selected_jid = jid;
stack.transition_type = StackTransitionType.SLIDE_LEFT;
- string name = name_;
+ string name = Markup.escape_text(name_);
Jid? real_jid = stream_interactor.get_module(MucManager.IDENTITY).get_real_jid(jid, conversation.account);
- if (real_jid != null) name += @"\n$(real_jid.bare_jid)";
+ if (real_jid != null) name += "\n%s".printf(Markup.escape_text(real_jid.bare_jid.to_string()));
Box header_box = new Box(Orientation.HORIZONTAL, 5) { visible=true };
header_box.add(new Image.from_icon_name("pan-start-symbolic", IconSize.SMALL_TOOLBAR) { visible=true });