diff --git a/common/lib/capa/capa/capa_problem.py b/common/lib/capa/capa/capa_problem.py index 687bdd7e8e..548ccd43da 100644 --- a/common/lib/capa/capa/capa_problem.py +++ b/common/lib/capa/capa/capa_problem.py @@ -31,6 +31,8 @@ import capa.responsetypes as responsetypes from capa.util import contextualize_text, convert_files_to_filenames import capa.xqueue_interface as xqueue_interface from capa.safe_exec import safe_exec +from openedx.core.djangolib.markup import HTML +from xmodule.stringify import stringify_children # extra things displayed after "show answers" is pressed @@ -926,7 +928,7 @@ class LoncapaProblem(object): group_label_tag.tag = 'p' group_label_tag.set('id', responsetype_id) group_label_tag.set('class', 'multi-inputs-group-label') - group_label_tag_text = group_label_tag.text + group_label_tag_text = stringify_children(group_label_tag) for inputfield in inputfields: problem_data[inputfield.get('id')] = { @@ -938,7 +940,7 @@ class LoncapaProblem(object): # Extract label value from