From a6fd6ca5ec32e5f350e7e14ac01c5feb183321aa Mon Sep 17 00:00:00 2001 From: Ayub-Khan Date: Wed, 2 Dec 2015 20:53:26 +0500 Subject: [PATCH] fix html escape error TNL-3822 --- cms/templates/container.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cms/templates/container.html b/cms/templates/container.html index c44ac74b84..549eaddc82 100644 --- a/cms/templates/container.html +++ b/cms/templates/container.html @@ -11,6 +11,7 @@ else: from contentstore.views.helpers import xblock_studio_url, xblock_type_display_name from django.utils.translation import ugettext as _ from openedx.core.lib.js_utils import escape_json_dumps +from markupsafe import Markup as HTML, escape as HTML_ESCAPE %> <%block name="title">${xblock.display_name_with_default} ${xblock_type_display_name(xblock) | h} <%block name="bodyclass">is-signedin course container view-container @@ -110,10 +111,10 @@ from openedx.core.lib.js_utils import escape_json_dumps % if xblock.category == 'split_test':

${_("Adding components")}

-

${_("Select a component type under {em_start}Add New Component{em_end}. Then select a template.").format(em_start='', em_end="") | h}

+

${_(HTML_ESCAPE("Select a component type under {em_start}Add New Component{em_end}. Then select a template.")).format(em_start=HTML(''), em_end=HTML(""))}

${_("The new component is added at the bottom of the page or group. You can then edit and move the component.")}

${_("Editing components")}

-

${_("Click the {em_start}Edit{em_end} icon in a component to edit its content.").format(em_start='', em_end="") | h}

+

${_(HTML_ESCAPE("Click the {em_start}Edit{em_end} icon in a component to edit its content.")).format(em_start=HTML(''), em_end=HTML(""))}

${_("Reorganizing components")}

${_("Drag components to new locations within this component.")}

${_("For content experiments, you can drag components to other groups.")}