Commit 85e7e70f by Muhammad Ammar Committed by GitHub

Merge pull request #13347 from edx/ammar/fix-safe-linter-violations

fix safe linter violations
parents fea40ce1 ddecb5ad
<%! from openedx.core.djangolib.markup import HTML %>
<form class="annotation-input"> <form class="annotation-input">
<div class="script_placeholder" data-src="${STATIC_URL}js/capa/annotationinput.js"/> <div class="script_placeholder" data-src="${STATIC_URL}js/capa/annotationinput.js"/>
...@@ -59,6 +60,5 @@ ...@@ -59,6 +60,5 @@
</form> </form>
% if msg: % if msg:
<span class="message">${msg|n}</span> <span class="message">${HTML(msg)}</span>
% endif % endif
<%! from openedx.core.djangolib.markup import HTML %>
<% <%
def is_radio_input(choice_id): def is_radio_input(choice_id):
return input_type == 'radio' and ((isinstance(value, basestring) and (choice_id == value)) or ( return input_type == 'radio' and ((isinstance(value, basestring) and (choice_id == value)) or (
...@@ -73,6 +74,6 @@ ...@@ -73,6 +74,6 @@
<div class="capa_alert">${submitted_message}</div> <div class="capa_alert">${submitted_message}</div>
%endif %endif
% if msg: % if msg:
<span class="message">${msg|n}</span> <span class="message">${HTML(msg)}</span>
% endif % endif
</form> </form>
<%! from openedx.core.djangolib.markup import HTML %>
<div id="inputtype_${id}" class="capa_inputtype"> <div id="inputtype_${id}" class="capa_inputtype">
<div class="drag_and_drop_problem_div" id="drag_and_drop_div_${id}" <div class="drag_and_drop_problem_div" id="drag_and_drop_div_${id}"
data-plain-id="${id}"> data-plain-id="${id}">
...@@ -23,7 +24,7 @@ ...@@ -23,7 +24,7 @@
<p id="answer_${id}" class="answer"></p> <p id="answer_${id}" class="answer"></p>
% if msg: % if msg:
<span class="message">${msg|n}</span> <span class="message">${HTML(msg)}</span>
% endif % endif
% if status in ['unsubmitted', 'correct', 'incorrect', 'partially-correct', 'incomplete']: % if status in ['unsubmitted', 'correct', 'incorrect', 'partially-correct', 'incomplete']:
......
<%! from openedx.core.djangolib.markup import HTML %>
<section id="filesubmission_${id}" class="filesubmission"> <section id="filesubmission_${id}" class="filesubmission">
<div class="grader-status file"> <div class="grader-status file">
...@@ -9,5 +10,5 @@ ...@@ -9,5 +10,5 @@
<input type="file" name="input_${id}" id="input_${id}" value="${value}" multiple="multiple" data-required_files="${required_files|h}" data-allowed_files="${allowed_files|h}" aria-label="${response_data['label']}"/> <input type="file" name="input_${id}" id="input_${id}" value="${value}" multiple="multiple" data-required_files="${required_files|h}" data-allowed_files="${allowed_files|h}" aria-label="${response_data['label']}"/>
</div> </div>
<div class="message">${msg|n}</div> <div class="message">${HTML(msg)}</div>
</section> </section>
<%! from openedx.core.djangolib.markup import HTML %>
<% doinline = "inline" if inline else "" %> <% doinline = "inline" if inline else "" %>
<form class="inputtype option-input ${doinline}"> <form class="inputtype option-input ${doinline}">
...@@ -29,6 +30,6 @@ ...@@ -29,6 +30,6 @@
</div> </div>
<p class="answer" id="answer_${id}"></p> <p class="answer" id="answer_${id}"></p>
% if msg: % if msg:
<span class="message">${msg|n}</span> <span class="message">${HTML(msg)}</span>
% endif % endif
</form> </form>
<%! from openedx.core.djangolib.markup import HTML %>
<section id="inputtype_${id}" class="capa_inputtype" > <section id="inputtype_${id}" class="capa_inputtype" >
<table><tr><td height='600'> <table><tr><td height='600'>
<div id="vsepr_div_${id}" style="position:relative;" data-molecules="${molecules}" data-geometries="${geometries}"> <div id="vsepr_div_${id}" style="position:relative;" data-molecules="${molecules}" data-geometries="${geometries}">
...@@ -26,7 +27,7 @@ ...@@ -26,7 +27,7 @@
<p id="answer_${id}" class="answer"></p> <p id="answer_${id}" class="answer"></p>
% if msg: % if msg:
<span class="message">${msg|n}</span> <span class="message">${HTML(msg)}</span>
% endif % endif
% if status in ['unsubmitted', 'correct', 'incorrect', 'partially-correct', 'incomplete']: % if status in ['unsubmitted', 'correct', 'incorrect', 'partially-correct', 'incomplete']:
</div> </div>
......
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