-
Bug
-
Resolution: Fixed
-
Minor
-
3.6.10, 4.2.2
-
MOODLE_36_STABLE, MOODLE_402_STABLE
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-69119-M401_angle_bracket_character_in_answers_not_escaped_in_moodle_xml_export_of_multiple_choice_calculated_questions -
MDL-69119-M402_angle_bracket_character_in_answers_not_escaped_in_moodle_xml_export_of_multiple_choice_calculated_questions -
MDL-69119_angle_bracket_character_in_answers_not_escaped_in_moodle_xml_export_of_multiple_choice_calculated_questions -
Unfortunately i don't have access to the information about the Moodle version, which should however be fairly recent.
To reproduce the problem:
- Create a multiple choice calculated questions and fill the text with: "If x = {param}, what should the value of z be? Remember that < mean less-tha"
- fill the answers with:
-
- z < {param}
- z<{=2*{param}}
- Assign whatever value set to the paramter
- Export the question in "Moodle XML" format
- Inspecting the xml shows that the "<" character is correctly escaped in the text of the question, but not in the answers. If you try to import the question, you get an error pointing to the unescaped "<" character.