🐛 Fix flask.escape warning for internal tests (#9468)

* fix flask.escape warning

* 📝 Fix highlight in docs for WSGI

---------

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Samuel ColvinandSebastián Ramírez authored and GitHub committed 2023-05-09 14:32:00 +00:00
1 parent fe55402776
commit 5100a98ccd
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ Then wrap the WSGI (e.g. Flask) app with the middleware.
And then mount that under a path.
```Python hl_lines="2-3 22"
```Python hl_lines="2-3 23"
{!../../../docs_src/wsgi/tutorial001.py!}
```
+2 -1
View File
@@ -1,6 +1,7 @@
from fastapi import FastAPI
from fastapi.middleware.wsgi import WSGIMiddleware
from flask import Flask, escape, request
from flask import Flask, request
from markupsafe import escape
flask_app = Flask(__name__)