1. Michael Bayer
  2. mako

Issues

Issue #142 resolved

html_error_template() should escape the exception name and message

guest
created an issue

from mako.template import Template from mako.exceptions import html_error_template

x = Template(""" X: <% raise Exception('<span style="color:red">Foobar</span>') %> """)

try: x.render() except:

  1. <h3>Exception: <span style="color:red">Foobar</span></h3> print html_error_template().render(full=False, css=False)

Comments (3)

  1. Log in to comment