Matrix question exports do not convert "&" to "&", causing import errors in Moodle XML format.
Here's a sample of what the file should look like on export
questions-maincourse-Matrix amp; not the movie-20260618-1145.xml
Here's an example of what the file looks like after export and no changes are made thereafter.
questions-maincourse-Matrix amp; not the movie-20260618-1145notadjusted.xml
Replication steps:
- Go to a course or create a new one, ensuring that as a prerequisite, matrix/kprime qtype is enabled under site administration
- Create a quiz, or edit an existing one
- Add a matrix question, with a few '
&' characters in there.
- Export the question to Moodle XML format
Observed: '&' appears where '&' should be instead
Expected: Questions exported with correct '&' tags
Matrix question exports do not convert "&" to "&", causing import errors in Moodle XML format.
Here's a sample of what the file should look like on export
questions-maincourse-Matrix amp; not the movie-20260618-1145.xml
Here's an example of what the file looks like after export and no changes are made thereafter.
questions-maincourse-Matrix amp; not the movie-20260618-1145notadjusted.xml
Replication steps:
&' characters in there.Observed: '&' appears where '
&' should be insteadExpected: Questions exported with correct '
&' tags