mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
sound tags need filename html escaped
https://forums.ankiweb.net/t/unable-to-play-longer-audio-on-cards/1313/30
This commit is contained in:
parent
c82a084edf
commit
21749a3b0c
1 changed files with 1 additions and 1 deletions
|
@ -761,7 +761,7 @@ to a cloze type first, via 'Notes>Change Note Type'"""
|
|||
return '<img src="%s">' % name
|
||||
else:
|
||||
av_player.play_file(fname)
|
||||
return "[sound:%s]" % fname
|
||||
return "[sound:%s]" % html.escape(fname, quote=False)
|
||||
|
||||
def urlToFile(self, url: str) -> Optional[str]:
|
||||
l = url.lower()
|
||||
|
|
Loading…
Reference in a new issue