kopia lustrzana https://github.com/simonw/datasette
Fix for escape() error
rodzic
6d672fe34c
commit
19d4406f56
|
@ -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(
|
||||
|
|
Ładowanie…
Reference in New Issue