From 0fce9fba9d1faabca13113adf3eec24667431dc7 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 1 Mar 2018 13:37:56 +1000 Subject: [PATCH] don't convert quotes to entities on import https://anki.tenderapp.com/discussions/ankidesktop/26926-bug-report-exporting-than-re-importing-messes-up-quotes --- anki/importing/noteimp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/importing/noteimp.py b/anki/importing/noteimp.py index bbdc61acd..14eb439b8 100644 --- a/anki/importing/noteimp.py +++ b/anki/importing/noteimp.py @@ -125,7 +125,7 @@ class NoteImporter(Importer): for n in notes: for c in range(len(n.fields)): if not self.allowHTML: - n.fields[c] = html.escape(n.fields[c]) + n.fields[c] = html.escape(n.fields[c], quote=False) n.fields[c] = n.fields[c].strip() if not self.allowHTML: n.fields[c] = n.fields[c].replace("\n", "
")