Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-69119

< character in answers not escaped in Moodle XML export of multiple choice calculated questions

XMLWordPrintable

      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.

       

       

            Daniel Ziegenberg Daniel Ziegenberg
            Ciani Giacomo Ciani
            Tim Hunt Tim Hunt
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 56 minutes
                1h 56m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.