We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c54afe3 commit 33f060dCopy full SHA for 33f060d
2 files changed
debug_toolbar/settings.py
@@ -53,7 +53,7 @@ class DebugToolbarSettings(BaseSettings):
53
),
54
)
55
JINJA_ENV: Environment = Field(
56
- Environment(),
+ Environment(autoescape=True),
57
description="The Jinja environment instance used to render the toolbar.",
58
59
JINJA_LOADERS: list[BaseLoader] = Field(
debug_toolbar/templates/panels/profiling.html
@@ -1,6 +1,6 @@
1
<iframe id="profilingContent">
2
<style>.header { display: none; }</style>
3
- {{ content }}
+ {{ content | safe }}
4
</iframe>
5
6
<script>
0 commit comments