Commit f2c8582c by Kevin Falcone

Merge pull request #11909 from edx/jibsheet/html-escape-submission-history

Submission History safe by default
parents 05ffcb0a 8a85d7e3
<%page expression_filter="h"/>
<% import json %> <% import json %>
<h3>${username | h} > ${course_id | h} > ${location | h}</h3> <h3>${username} > ${course_id} > ${location}</h3>
% for i, (entry, score) in enumerate(zip(history_entries, scores)): % for i, (entry, score) in enumerate(zip(history_entries, scores)):
<hr/> <hr/>
...@@ -7,7 +8,7 @@ ...@@ -7,7 +8,7 @@
<b>#${len(history_entries) - i}</b>: ${entry.updated} UTC</br> <b>#${len(history_entries) - i}</b>: ${entry.updated} UTC</br>
Score: ${score.grade} / ${score.max_grade} Score: ${score.grade} / ${score.max_grade}
<pre> <pre>
${json.dumps(entry.state, indent=2, sort_keys=True) | h} ${json.dumps(entry.state, indent=2, sort_keys=True)}
</pre> </pre>
</div> </div>
% endfor % endfor
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment