diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 9418835a..5cd59f41 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -246,7 +246,7 @@ of the argument like ````. :: @app.route('/user/') def show_user_profile(username): # show the user profile for that user - return f'User {username}' + return f'User {escape(username)}' @app.route('/post/') def show_post(post_id): @@ -256,7 +256,7 @@ of the argument like ````. :: @app.route('/path/') def show_subpath(subpath): # show the subpath after /path/ - return f'Subpath {subpath}' + return f'Subpath {escape(subpath)}' Converter types: