Update docstring
This commit is contained in:
parent
3b7ed0c591
commit
6b40bca0a3
1 changed files with 3 additions and 1 deletions
|
|
@ -51,7 +51,9 @@ templates: Jinja2Templates = Jinja2Templates(directory="templates")
|
||||||
|
|
||||||
|
|
||||||
def encode_url(url_to_quote: str) -> str:
|
def encode_url(url_to_quote: str) -> str:
|
||||||
"""%-escape the URL so it can be used in a URL. If we didn't do this, the URL could contain a ?
|
"""%-escape the URL so it can be used in a URL. If we didn't do this, we couldn't go to feeds with a ? in the URL.
|
||||||
|
|
||||||
|
You can use this in templates with {{ url | encode_url }}.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
url_to_quote: The url to encode.
|
url_to_quote: The url to encode.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue