* src/DataViews/_PedigreeView.py: Escape XML special chars

svn: r7790
This commit is contained in:
Martin Hawlisch 2006-12-12 12:57:21 +00:00
parent 964c65b895
commit a8f4ed6b20

View File

@ -1148,7 +1148,7 @@ class PedigreeView(PageView.PersonNavView):
myMenu = gtk.Menu() myMenu = gtk.Menu()
for child_handle in childlist: for child_handle in childlist:
child = self.dbstate.db.get_person_from_handle(child_handle) child = self.dbstate.db.get_person_from_handle(child_handle)
cname = NameDisplay.displayer.display(child) cname = escape(NameDisplay.displayer.display(child))
if find_children(self.dbstate.db,child): if find_children(self.dbstate.db,child):
label = gtk.Label('<b><i>%s</i></b>' % cname) label = gtk.Label('<b><i>%s</i></b>' % cname)
else: else: