diff options
author | Prabhu Ramachandran | 2011-12-04 21:58:37 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-12-04 21:58:37 +0530 |
commit | 7104f495d01fb934af11c8dfd09da087174c1b12 (patch) | |
tree | dbe7be9f2f499e0bb786c7a9f0847ea88a3a4882 /templates/exam/user_data.html | |
parent | 6755a1604094e601fc6df88929841b5a06690c90 (diff) | |
download | online_test-7104f495d01fb934af11c8dfd09da087174c1b12.tar.gz online_test-7104f495d01fb934af11c8dfd09da087174c1b12.tar.bz2 online_test-7104f495d01fb934af11c8dfd09da087174c1b12.zip |
The answer needs to be HTML escaped.
Diffstat (limited to 'templates/exam/user_data.html')
-rw-r--r-- | templates/exam/user_data.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/exam/user_data.html b/templates/exam/user_data.html index 77de5ce..9fb442a 100644 --- a/templates/exam/user_data.html +++ b/templates/exam/user_data.html @@ -45,12 +45,12 @@ User IP address: {{ paper.user_ip }} <p> Choices: {% for option in question.options.strip.splitlines %} {{option}}, {% endfor %} </p> -<p>Student answer: {{ answers.0|safe }}</p> +<p>Student answer: {{ answers.0 }}</p> {% else %}{# non-mcq questions #} <pre> {% for answer in answers %}################################################################################ -{{ answer.answer.strip|safe }} -# Autocheck: {{ answer.error|safe }} +{{ answer.answer.strip }} +# Autocheck: {{ answer.error }} {% endfor %}</pre> {% endif %} {% with answers|last as answer %} |