Merge pull request #11921 from edx/sstudent/safe_welcome_back
making the welcome_back template safe
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import ugettext as _
|
||||
from openedx.core.djangolib.markup import Text, HTML
|
||||
%>
|
||||
|
||||
<h2>${chapter_module.display_name_with_default_escaped}</h2>
|
||||
<h2>${chapter_module.display_name_with_default}</h2>
|
||||
|
||||
<p>${_("You were most recently in {section_link}. If you\'re done with that, choose another section on the left.").format(
|
||||
section_link=u'<a href="{url}">{section_name}</a>'.format(
|
||||
<p>${Text(_("You were most recently in {section_link}. If you're done with that, choose another section on the left.")).format(
|
||||
section_link=HTML('<a href="{url}">{section_name}</a>').format(
|
||||
url=prev_section_url,
|
||||
section_name=prev_section.display_name_with_default_escaped,
|
||||
section_name=prev_section.display_name_with_default,
|
||||
)
|
||||
)}</p>
|
||||
|
||||
Reference in New Issue
Block a user