Skip to content

Commit

Permalink
Added |safe output to field answers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers committed Aug 26, 2020
1 parent dbf9dc4 commit 45d9e92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/templates/admin/elements/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h4>{{ article.title|safe }}</h4>
<th colspan="4">{{ field_answer.field.name }}</th>
</tr>
<tr>
<td colspan="4">{{ field_answer.answer }}</td>
<td colspan="4">{{ field_answer.answer|safe }}</td>
</tr>
{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/admin/preprints/author_article.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h2>Metadata</h2>
<th colspan="4">{{ field_answer.field.name }}</th>
</tr>
<tr>
<td colspan="4">{{ field_answer.answer }}</td>
<td colspan="4">{{ field_answer.answer|safe }}</td>
</tr>
{% endfor %}
</table>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/admin/review/unassigned_article.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2>Summary of Article</h2>
<th colspan="4">{{ field_answer.field.name }}</th>
</tr>
<tr>
<td colspan="4">{{ field_answer.answer }}</td>
<td colspan="4">{{ field_answer.answer|safe }}</td>
</tr>
{% endfor %}
</table>
Expand Down

0 comments on commit 45d9e92

Please sign in to comment.