mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix for escape() error
This commit is contained in:
parent
6d672fe34c
commit
19d4406f56
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ class BaseView(AsgiView):
|
|||
if request and request.args.get("_context") and self.ds.config("template_debug"):
|
||||
return Response.html(
|
||||
"<pre>{}</pre>".format(
|
||||
escape(json.dumps(template_context, default=repr, indent=4))
|
||||
jinja2.escape(json.dumps(template_context, default=repr, indent=4))
|
||||
)
|
||||
)
|
||||
return Response.html(await self.ds.render_template(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue