You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: