Damien Elmes 2018-03-01 13:37:56 +10:00
parent c87b9be73a
commit 0fce9fba9d

View file

@ -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", "<br>")