diff --git a/anki/importing/pauker.py b/anki/importing/pauker.py index a10ed76ba..c5f7d45f8 100644 --- a/anki/importing/pauker.py +++ b/anki/importing/pauker.py @@ -2,7 +2,7 @@ # Copyright: Andreas Klauer # License: BSD-3 -import gzip, math, random, time +import gzip, math, random, time, cgi import xml.etree.ElementTree as ET from anki.importing.noteimp import NoteImporter, ForeignNote, ForeignCard from anki.stdmodels import addForwardReverse @@ -13,6 +13,7 @@ class PaukerImporter(NoteImporter): '''Import Pauker 1.8 Lesson (*.pau.gz)''' needMapper = False + allowHTML = True def run(self): model = addForwardReverse(self.col) @@ -49,7 +50,7 @@ class PaukerImporter(NoteImporter): front = card.findtext('./FrontSide/Text') back = card.findtext('./ReverseSide/Text') note = ForeignNote() - note.fields = [x.strip().replace('\n','
') for x in [front, back]] + note.fields = [cgi.escape(x.strip()).replace('\n','
').replace(' ','  ') for x in [front,back]] notes.append(note) # Determine due date for cards.