Skip to content

Commit a0fb7a2

Browse files
committed
allow html in criteria and clarifications
1 parent ef1a534 commit a0fb7a2

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

crowdsourcer/templates/crowdsourcer/authority_audit_questions.html

+4
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,15 @@ <h2 class="h4 mb-0 mw-40em">
5757
<div class="d-sm-flex mx-n3 text-muted">
5858
<details class="mt-3 mt-sm-0 mx-3 mw-30em">
5959
<summary class="fw-bold mb-2">Criteria</summary>
60+
{% autoescape off %}
6061
{{ q_form.question_obj.criteria|linebreaks }}
62+
{% endautoescape %}
6163
</details>
6264
<details class="mt-3 mt-sm-0 mx-3 mw-30em">
6365
<summary class="fw-bold mb-2">Clarifications</summary>
66+
{% autoescape off %}
6467
{{ q_form.question_obj.clarifications|linebreaks }}
68+
{% endautoescape %}
6569
</details>
6670
</div>
6771
<div class="row gx-lg-5">

crowdsourcer/templates/crowdsourcer/authority_questions.html

+4
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,15 @@ <h3 class="mb-4 mb-md-5 text-success">
5757
<div class="col-md-4 offset-md-1 order-md-2 mb-3 mb-sm-4">
5858
<details class="text-muted">
5959
<summary class="fw-bold mb-2">Criteria</summary>
60+
{% autoescape off %}
6061
{{q_form.question_obj.criteria|linebreaks }}
62+
{% endautoescape %}
6163
</details>
6264
<details class="text-muted">
6365
<summary class="fw-bold mb-2">Clarifications</summary>
66+
{% autoescape off %}
6467
{{q_form.question_obj.clarifications|linebreaks }}
68+
{% endautoescape %}
6569
</details>
6670
</div>
6771
<div class="col-md-7 order-md-1">

crowdsourcer/templates/crowdsourcer/authority_ror_questions.html

+4
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,15 @@ <h3 class="mb-4 mb-md-5 text-success">
5858
<div class="col-md-4 offset-md-1 order-md-2 mb-3 mb-sm-4">
5959
<details class="text-muted">
6060
<summary class="fw-bold mb-2">Criteria</summary>
61+
{% autoescape off %}
6162
{{q_form.question_obj.criteria|linebreaks }}
63+
{% endautoescape %}
6264
</details>
6365
<details class="text-muted">
6466
<summary class="fw-bold mb-2">Clarifications</summary>
67+
{% autoescape off %}
6568
{{q_form.question_obj.clarifications|linebreaks }}
69+
{% endautoescape %}
6670
</details>
6771
</div>
6872
<div class="col-md-7 order-md-1">

0 commit comments

Comments
 (0)