mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Merge pull request #789 from abdnh/editor-decode-urls
Decode pasted URLs for nicer display
This commit is contained in:
commit
1aa29f2e79
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue