Add missing html.escape

This commit is contained in:
Florian Bruhin 2016-10-31 07:50:56 +01:00
parent efdcbd860e
commit 27f96943a2

View File

@ -447,7 +447,8 @@ class _BasePrompt(QWidget):
def _init_title(self, question):
assert question.title is not None, question
title = '<font size="4"><b>{}</b></font>'.format(question.title)
title = '<font size="4"><b>{}</b></font>'.format(
html.escape(question.title))
title_label = QLabel(title, self)
self._vbox.addWidget(title_label)
if question.text is not None: