Files
edx-platform/lms/templates/commerce/checkout_error.html
Adeel Khan 30d8dfb5dd Fix edx-platform templates for xss.
This is part 2 of a multiple PR to escape
edx-platform templates to prevent xss attack.

PROD-465
2019-07-10 13:31:02 +05:00

18 lines
651 B
HTML

<%page expression_filter="h"/>
<%! from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML, Text
%>
<%inherit file="../main.html" />
<%block name="pagetitle">${_("Checkout Error")}</%block>
<section class="container">
<h1>${_("Checkout Error")}</h1>
${ Text(_(u"An error has occurred with your payment. {b_start}You have not been charged.{b_end} Please try to submit your payment again. If this problem persists, contact {email}.")).format(
b_start=HTML('<b>'),
b_end=HTML('</b>'),
email=HTML("<a href=\"mailto:{email}\">{email}</a>").format(email=payment_support_email)) }
</section>