mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix duplicates not escaping html
https://forums.ankiweb.net/t/bug-report-showdupes-not-html-escaping-field-content/2167
This commit is contained in:
parent
63f8e510d8
commit
3d0d21e4bc
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ class Editor:
|
|||
self.web.eval("setBackgrounds(%s);" % json.dumps(cols))
|
||||
|
||||
def showDupes(self):
|
||||
contents = stripHTMLMedia(self.note.fields[0])
|
||||
contents = html.escape(stripHTMLMedia(self.note.fields[0]))
|
||||
browser = aqt.dialogs.open("Browser", self.mw)
|
||||
browser.form.searchEdit.lineEdit().setText(
|
||||
'"dupe:%s,%s"' % (self.note.model()["id"], contents)
|
||||
|
|
Loading…
Reference in a new issue