From 7104f495d01fb934af11c8dfd09da087174c1b12 Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Sun, 4 Dec 2011 21:58:37 +0530 Subject: The answer needs to be HTML escaped. --- templates/exam/grade_user.html | 6 +++--- templates/exam/user_data.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/exam') diff --git a/templates/exam/grade_user.html b/templates/exam/grade_user.html index 2a109af..75ed2e0 100644 --- a/templates/exam/grade_user.html +++ b/templates/exam/grade_user.html @@ -43,12 +43,12 @@ Start time: {{ paper.start_time }}

Choices: {% for option in question.options.strip.splitlines %} {{option}}, {% endfor %}

-

Student answer: {{ answers.0|safe }}

+

Student answer: {{ answers.0 }}

{% else %}{# non-mcq questions #}
 {% for answer in answers %}################################################################################
-{{ answer.answer.strip|safe }}
-# Autocheck: {{ answer.error|safe }}
+{{ answer.answer.strip }}
+# Autocheck: {{ answer.error }}
 {% endfor %}
{% endif %} {# if question.type #} {% with answers|last as answer %} 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 }}

Choices: {% for option in question.options.strip.splitlines %} {{option}}, {% endfor %}

-

Student answer: {{ answers.0|safe }}

+

Student answer: {{ answers.0 }}

{% else %}{# non-mcq questions #}
 
 {% for answer in answers %}################################################################################
-{{ answer.answer.strip|safe }}
-# Autocheck: {{ answer.error|safe }}
+{{ answer.answer.strip }}
+# Autocheck: {{ answer.error }}
 {% endfor %}
{% endif %} {% with answers|last as answer %} -- cgit