Commit 4a496e7d by sanfordstudent

Merge pull request #11921 from edx/sstudent/safe_welcome_back

making the welcome_back template safe
parents 78016db3 d64b6d35
<%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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment