diff --git a/src/dialogs.py b/src/dialogs.py
index 5b5b841a2891eee2dd23868a16cda14ca9d8f893..fd1ca16b946ce8d456b4c219a75b6724abddf859 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -2601,6 +2601,7 @@ class InvitationReceivedDialog:
 		label_text = '<big><b>%s</b></big>' % pritext
 
 		if comment: # only if not None and not ''
+			comment = gobject.markup_escape_text(comment)
 			sectext = _('Comment: %s') % comment
 			label_text += '\n\n%s' % sectext