Decode pasted URLs

This commit is contained in:
abdo 2020-10-11 16:09:56 +03:00
parent 99af63d81c
commit 709e789ade

View file

@ -1130,7 +1130,9 @@ class EditorWebView(AnkiWebView):
processed.append(link)
else:
# not media; add it as a normal link
link = '<a href="{}">{}</a>'.format(token, html.escape(token))
link = '<a href="{}">{}</a>'.format(
token, html.escape(urllib.parse.unquote(token))
)
processed.append(link)
else:
token = html.escape(token).replace("\t", " " * 4)