﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35296	The autoescape parameter to Engine() seems to have no effect on Context.	Roman Donchenko	nobody	"The reference documentation for `django.template.Engine` says [https://docs.djangoproject.com/en/5.0/ref/templates/api/#configuring-an-engine the following]:

* `autoescape` controls whether HTML autoescaping is enabled.
  It defaults to `True`.

Based on this, I would expect the following to print `<>`:


{{{#!python
import django.template
django.template.Engine(autoescape=False)
t = e.from_string('{{x}}')
print(t.render(django.template.Context({'x': '<>'})))
}}}

But it doesn't, it prints `&lt;&gt;`. So it seems that the `autoescape` parameter does nothing.

Either the code should be updated to make the parameter work, or the docs should explain what it actually does.
"	Uncategorized	closed	Template system	5.0	Normal	invalid		bcail	Unreviewed	0	0	0	0	0	0
