diff --git a/cms/templates/edit-tabs.html b/cms/templates/edit-tabs.html index 04255d8b9b..b08802d3a7 100644 --- a/cms/templates/edit-tabs.html +++ b/cms/templates/edit-tabs.html @@ -1,3 +1,4 @@ +<%page expression_filter="h"/> <%inherit file="base.html" /> <%def name="online_help_token()"><% return "pages" %>%def> <%namespace name='static' file='static_content.html'/> @@ -5,7 +6,7 @@ from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from xmodule.tabs import StaticTab - from django.template.defaultfilters import escapejs + from openedx.core.djangolib.js_utils import js_escaped_string %> <%block name="title">${_("Pages")}%block> <%block name="bodyclass">is-signedin course view-static-pages%block> @@ -20,7 +21,7 @@ <%block name="requirejs"> require(["js/factories/edit_tabs"], function (EditTabsFactory) { - EditTabsFactory("${context_course.location | escapejs}", "${reverse('contentstore.views.tabs_handler', kwargs={'course_key_string': context_course.id})}"); + EditTabsFactory("${context_course.location | n, js_escaped_string}", "${reverse('contentstore.views.tabs_handler', kwargs={'course_key_string': context_course.id})}"); }); %block> @@ -30,7 +31,7 @@