forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-69798 XML question export: excape special chars in idnumbers
- Loading branch information
Showing
3 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
question/format/xml/tests/fixtures/html_chars_in_idnumbers.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<quiz> | ||
<!-- question: 0 --> | ||
<question type="category"> | ||
<category> | ||
<text>$course$/Alpha</text> | ||
</category> | ||
<info format="moodle_auto_format"> | ||
<text>This is Alpha category for test</text> | ||
</info> | ||
<idnumber>The inequalities < & ></idnumber> | ||
</question> | ||
|
||
<!-- question: 91 --> | ||
<question type="truefalse"> | ||
<name> | ||
<text>Alpha Question</text> | ||
</name> | ||
<questiontext format="html"> | ||
<text><![CDATA[<p>Testing Alpha Question</p>]]></text> | ||
</questiontext> | ||
<generalfeedback format="html"> | ||
<text></text> | ||
</generalfeedback> | ||
<defaultgrade>1.0000000</defaultgrade> | ||
<penalty>1.0000000</penalty> | ||
<hidden>0</hidden> | ||
<idnumber>T & F</idnumber> | ||
<answer fraction="100" format="moodle_auto_format"> | ||
<text>true</text> | ||
<feedback format="html"> | ||
<text></text> | ||
</feedback> | ||
</answer> | ||
<answer fraction="0" format="moodle_auto_format"> | ||
<text>false</text> | ||
<feedback format="html"> | ||
<text></text> | ||
</feedback> | ||
</answer> | ||
</question> | ||
|
||
</quiz> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters