diff --git a/lms/templates/provider/authorize.html b/lms/templates/provider/authorize.html
index f3ab459b67..6181de9725 100644
--- a/lms/templates/provider/authorize.html
+++ b/lms/templates/provider/authorize.html
@@ -1,9 +1,12 @@
## mako
+<%page expression_filter="h"/>
+
<%!
from django.utils.translation import ugettext as _
from provider.templatetags.scope import scopes
from django.core.urlresolvers import reverse
+from openedx.core.djangolib.markup import Text, HTML
%>
<%inherit file="../main.html"/>
@@ -14,9 +17,11 @@ from django.core.urlresolvers import reverse
% if not error:
- ${_("\n {application_name} would like to access your data with the following permissions:\n ".format(
- application_name=client.name
- ))}
+ ${Text(_("{start_strong}{application_name}{end_strong} would like to access your data with the following permissions:")).format(
+ start_strong=HTML(""),
+ application_name=client.name,
+ end_strong=HTML("")
+ )}
% for permission in scopes(oauth_data['scope']):
@@ -34,7 +39,7 @@ from django.core.urlresolvers import reverse
% elif permission == "permissions":
${_("To see if you are a global staff user")}
% else:
- ${_("Manage your data: {permission}".format(permission=permission))}
+ ${_("Manage your data: {permission}").format(permission=permission)}
% endif
% endfor
diff --git a/lms/templates/registration/password_reset_complete.html b/lms/templates/registration/password_reset_complete.html
index 16d990431c..af83c40e1b 100644
--- a/lms/templates/registration/password_reset_complete.html
+++ b/lms/templates/registration/password_reset_complete.html
@@ -1,6 +1,11 @@
## mako
-<%! from django.utils.translation import ugettext as _ %>
+<%page expression_filter="h"/>
+
+<%!
+from django.utils.translation import ugettext as _
+from openedx.core.djangolib.markup import Text, HTML
+%>
<%inherit file="../main.html"/>
@@ -27,9 +32,9 @@
${_("Password Reset Complete")}
- ${_(
- "Your password has been reset. {start_link}Sign-in to your account.{end_link}"
- .format(start_link='', end_link='')
+ ${Text(_("Your password has been reset. {start_link}Sign-in to your account.{end_link}")).format(
+ start_link=HTML(''),
+ end_link=HTML('')
)}
diff --git a/lms/templates/registration/password_reset_confirm.html b/lms/templates/registration/password_reset_confirm.html
index a9c6ae64b0..e28d16ecf0 100644
--- a/lms/templates/registration/password_reset_confirm.html
+++ b/lms/templates/registration/password_reset_confirm.html
@@ -1,11 +1,16 @@
## mako
-<%! from django.utils.translation import ugettext as _ %>
+<%page expression_filter="h"/>
+
+<%!
+from django.utils.translation import ugettext as _
+from openedx.core.djangolib.markup import Text, HTML
+%>
<%inherit file="../main.html"/>
<%block name="title">
- ${_("Reset Your {platform_name} Password".format(platform_name=platform_name))}
+ ${_("Reset Your {platform_name} Password").format(platform_name=platform_name)}
%block>
<%block name="bodyextra">
@@ -18,7 +23,7 @@