diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 1add63905..d01238853 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -500,9 +500,7 @@ class Editor: self.web.eval("setBackgrounds(%s);" % json.dumps(cols)) def showDupes(self): - contents = html.escape( - stripHTMLMedia(self.note.fields[0]), quote=False - ).replace('"', r"\"") + contents = self.note.fields[0].replace('"', r"\"") browser = aqt.dialogs.open("Browser", self.mw) browser.form.searchEdit.lineEdit().setText( '"dupe:%s,%s"' % (self.note.model()["id"], contents) diff --git a/rslib/src/search/sqlwriter.rs b/rslib/src/search/sqlwriter.rs index 28a763ed3..b678bbd33 100644 --- a/rslib/src/search/sqlwriter.rs +++ b/rslib/src/search/sqlwriter.rs @@ -432,7 +432,7 @@ impl SqlWriter<'_> { ntid, csum ) .unwrap(); - self.args.push(text.to_string()); + self.args.push(text_nohtml.to_string()); } fn write_added(&mut self, days: u32) -> Result<()> {