diff --git a/src/gui/views/tags.py b/src/gui/views/tags.py
index 3cb4821d8..be7196880 100644
--- a/src/gui/views/tags.py
+++ b/src/gui/views/tags.py
@@ -27,6 +27,7 @@ Provide tagging functionality.
#
#-------------------------------------------------------------------------
from bisect import insort_left
+from xml.sax.saxutils import escape
#-------------------------------------------------------------------------
#
@@ -197,7 +198,7 @@ class Tags(DbGUIElement):
tag_menu += ''
tag_menu += ''
for tag_name, handle in self.__tag_list:
- tag_menu += '' % tag_name
+ tag_menu += '' % escape(tag_name)
actions.append(('TAG_%s' % tag_name, None, tag_name, None, None,
make_callback(self.tag_selected_rows, handle)))