Log in

Template Engines

The main concern with template engines is what escaping they can do to prevent Cross-Site Scripting (XSS).

Warning:

None of the template engines examined here do enough escaping to prevent XSS when user-supplied data is used in unquoted HTML attributes. So...

Always quote your HTML attributes!

NameAutoescaping Mechanism?Autoescaping on by default?
Chameleon??
Django TemplatingYesYes, in >= 1.0
GenshiYes?
JinjaYesNo
MakoYesNo

  • Version: latest
  • Edited by Craig Younkins on 6/23/10 2:58 PM
  • History
  • Edit

An OWASP project created by Craig Younkins

Powered by Moe and Google App Engine