Skip to content

Commit c9a7b33

Browse files
authored
Reenable autoescaping in template rendering (#662)
* Enable autoescaping in Jinja2 environment * update version and changelog
1 parent 759f2c5 commit c9a7b33

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docs/changelog/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
66
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.15.1] - 2025-05-26
9+
10+
### Fixed
11+
12+
- Reenable autoescaping in template rendering by [@jowilf](https://github.com/jowilf)
13+
in [#662](https://github.com/jowilf/starlette-admin/pull/662)
14+
815
## [0.15.0] - 2025-05-21
916

1017
### Breaking Changes

starlette_admin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.15.0"
1+
__version__ = "0.15.1"
22

33
from ._types import ExportType as ExportType
44
from ._types import RequestAction as RequestAction

starlette_admin/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ def _setup_templates(self) -> None:
211211
]
212212
),
213213
extensions=["jinja2.ext.i18n"],
214+
autoescape=True,
214215
)
215216
templates = Jinja2Templates(env=env)
216217

0 commit comments

Comments
 (0)