diff --git a/util/locale_database/qlocalexml.py b/util/locale_database/qlocalexml.py index 448ad0770d2..3d950c3af33 100644 --- a/util/locale_database/qlocalexml.py +++ b/util/locale_database/qlocalexml.py @@ -864,7 +864,7 @@ class QLocaleXmlWriter (object): data: dict[str, str|tuple[str|None, str|None, str|None]] = naming[iana] self.__openTag('zoneNames', name=iana) if 'exemplarCity' in data: - self.inTag('exemplar', data['exemplarCity']) + self.safeInTag('exemplar', data['exemplarCity']) for form in ('short', 'long'): if form in data: self.__writeZoneForms(form, data[form])