Built-in template tags and filters
Built-in template tags and filters
This document describes Django’s built-in template tags and filters. It is recommended that you use the automatic documentation, if available, as this will also include documentation for any custom tags or filters installed.
Built-in tag reference
autoescape
Controls the current auto-escaping behavior. This tag takes either on
or off
as an argument and that determines whether auto-escaping is in effect inside the block. The block is closed with an endautoescape
ending tag.
When auto-escaping is in effect, all variable content has HTML escaping applied to it before placing the result into the output (but after any filters