mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
don't convert quotes to entities on import
https://anki.tenderapp.com/discussions/ankidesktop/26926-bug-report-exporting-than-re-importing-messes-up-quotes
This commit is contained in:
parent
c87b9be73a
commit
0fce9fba9d
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ class NoteImporter(Importer):
|
||||||
for n in notes:
|
for n in notes:
|
||||||
for c in range(len(n.fields)):
|
for c in range(len(n.fields)):
|
||||||
if not self.allowHTML:
|
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()
|
n.fields[c] = n.fields[c].strip()
|
||||||
if not self.allowHTML:
|
if not self.allowHTML:
|
||||||
n.fields[c] = n.fields[c].replace("\n", "<br>")
|
n.fields[c] = n.fields[c].replace("\n", "<br>")
|
||||||
|
|
Loading…
Reference in a new issue