diff --git a/src/plugins/export/ExportXml.py b/src/plugins/export/ExportXml.py index f1dd45165..4e8264e52 100644 --- a/src/plugins/export/ExportXml.py +++ b/src/plugins/export/ExportXml.py @@ -81,7 +81,11 @@ except: strip_dict = dict.fromkeys(range(9)+range(12,20)) def escxml(d): - return escape(d, { '"' : '"' } ) + return escape(d, + {'"' : '"', + '<' : '<', + '>' : '>', + }) #------------------------------------------------------------------------- # @@ -375,7 +379,8 @@ class GrampsXmlWriter(UpdateCallback): for number, name,fmt_str,active in self.db.name_formats: self.g.write('%s\n' - % (' ', number, name, fmt_str, int(active)) ) + % (' ', number, + escxml(name), escxml(fmt_str), int(active)) ) self.g.write(" \n") def fix(self,line):