From 3cbfab378aa8061e9b2974eaa97406ef73a095f6 Mon Sep 17 00:00:00 2001 From: SaadYousaf Date: Wed, 1 Jul 2020 23:44:47 +0500 Subject: [PATCH] PROD-1663 --- lms/templates/split_test_author_view.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lms/templates/split_test_author_view.html b/lms/templates/split_test_author_view.html index ede487e199..534777d0b1 100644 --- a/lms/templates/split_test_author_view.html +++ b/lms/templates/split_test_author_view.html @@ -1,4 +1,9 @@ -<%! from django.utils.translation import ugettext as _ %> +<%page expression_filter="h"/> + +<%! + from django.utils.translation import ugettext as _ + from openedx.core.djangolib.markup import HTML, Text +%> <% split_test = context.get('split_test') @@ -11,8 +16,8 @@ show_link = group_configuration_url is not None

- ${_("This content experiment uses group configuration '{group_configuration_name}'.").format( - group_configuration_name="{}".format(group_configuration_url, user_partition.name) if show_link else user_partition.name + ${Text(_("This content experiment uses group configuration '{group_configuration_name}'.")).format( + group_configuration_name=Text(HTML("{}")).format(group_configuration_url, user_partition.name) if show_link else user_partition.name )}

@@ -23,13 +28,13 @@ show_link = group_configuration_url is not None % if is_root:

${_("Active Groups")}

- ${active_groups_preview} + ${HTML(active_groups_preview)}
% if inactive_groups_preview:

${_("Inactive Groups")}

- ${inactive_groups_preview} + ${HTML(inactive_groups_preview)}
% endif % endif