Merge pull request #476 from MITx/arjun/fix_choiceresponse

Minor change in extract_choices in choicegroup to allow for html in choice text
This commit is contained in:
Calen Pennington
2012-08-21 12:11:47 -07:00

View File

@@ -206,7 +206,7 @@ def extract_choices(element):
raise Exception("[courseware.capa.inputtypes.extract_choices] \
Expected a <choice> tag; got %s instead"
% choice.tag)
choice_text = ''.join([x.text for x in choice])
choice_text = ''.join([etree.tostring(x) for x in choice])
choices.append((choice.get("name"), choice_text))