MST-698 Remove escaping for Proctoring Requirements email on course_name and proctoring backend name (#27500)

The course name can contain apostrophes and other special characters. The email template right now escapes every words. This is not desired because it can render apostrophes like #39;. Update the email templates so only second half of the email template is escaped
This commit is contained in:
Simon Chen
2021-05-03 15:39:07 -04:00
committed by GitHub
parent fb2cf54132
commit ebbb240027
2 changed files with 19 additions and 14 deletions

View File

@@ -7,11 +7,11 @@
<tr>
<td>
<h1>
{% filter force_escape %}
{% blocktrans %}
{% autoescape off %}
{% blocktrans %} # xss-lint: disable=django-blocktrans-missing-escape-filter
Proctoring requirements for {{ course_name }}
{% endblocktrans %}
{% endfilter %}
{% endautoescape %}
</h1>
<p style="color: rgba(0,0,0,.75);">
@@ -23,19 +23,19 @@
</p>
<p style="color: rgba(0,0,0,.75);">
{% filter force_escape %}
{% blocktrans %}
{% autoescape off %}
{% blocktrans %} # xss-lint: disable=django-blocktrans-missing-escape-filter
You are enrolled in {{ course_name }} at {{ platform_name }}. This course contains proctored exams.
{% endblocktrans %}
{% endfilter %}
{% endautoescape %}
</p>
<p style="color: rgba(0,0,0,.75);">
{% filter force_escape %}
{% blocktrans %}
{% autoescape off %}
{% blocktrans %} # xss-lint: disable=django-blocktrans-missing-escape-filter
Proctored exams are timed exams that you take while proctoring software monitors your computer's desktop, webcam video, and audio. Your course uses {{ proctoring_provider }} software for proctoring.
{% endblocktrans %}
{% endfilter %}
{% endautoescape %}
</p>
<p style="color: rgba(0,0,0,.75);">