It results in "Hello,<br/><b>John</b> Doe!". We have to explicitly mark inner as safe with markupsafe.Markup(inner) or | safe to produce the wanted output "Hello,<br/><b>John</b> Doe!".
The Template knows inner is created with autoescape=True. Couldn't it mark the result of render automatically as safe?
Consider this minimal example:
It results in
"Hello,<br/><b>John</b> Doe!"
. We have to explicitly markinner
as safe withmarkupsafe.Markup(inner)
or| safe
to produce the wanted output"Hello,<br/><b>John</b> Doe!"
.The Template knows
inner
is created withautoescape=True
. Couldn't it mark the result ofrender
automatically as safe?FWIW, the documentation has a related sentence