From 4fe77b89a2ff407c9181d1d110938aa2910323ad Mon Sep 17 00:00:00 2001 From: Eemaan Amir <57627710+eemaanamir@users.noreply.github.com> Date: Tue, 18 Feb 2025 12:52:11 +0500 Subject: [PATCH] fix: fixed escaped characters in goal reminder email (#36260) --- .../edx_ace/goalreminder/email/body.html | 16 +++++++++------- .../edx_ace/goalreminder/email/body.txt | 4 +++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/body.html b/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/body.html index 902ef907a8..a94187584d 100644 --- a/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/body.html +++ b/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/body.html @@ -51,11 +51,13 @@
{% filter force_escape %} - {% blocktrans count count=days_per_week asvar goal_text %} - You set a goal of learning {start_bold}{{days_per_week}} time a week in {{course_name}}{end_bold}. You’re not quite there, but there's still time to reach that goal! - {% plural %} - You set a goal of learning {start_bold}{{days_per_week}} times a week in {{course_name}}{end_bold}. You're not quite there, but there's still time to reach that goal! - {% endblocktrans %} + {% autoescape off %} + {% blocktrans count count=days_per_week asvar goal_text %} + You set a goal of learning {start_bold}{{days_per_week}} time a week in {{course_name}}{end_bold}. You’re not quite there, but there's still time to reach that goal! + {% plural %} + You set a goal of learning {start_bold}{{days_per_week}} times a week in {{course_name}}{end_bold}. You're not quite there, but there's still time to reach that goal! + {% endblocktrans %} + {% endautoescape %} {% endfilter %} {% interpolate_html goal_text start_bold=''|safe end_bold=''|safe %}
@@ -107,7 +109,7 @@ {% filter force_escape %}{% blocktrans %} Adjust my goal {% endblocktrans %}{% endfilter %} - +