diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index 3034c7fd1..9b5f15986 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -65,7 +65,7 @@ class Exporter: text = text.replace("\t", " " * 8) text = re.sub("(?i)", "", text) text = re.sub(r"\[\[type:[^]]+\]\]", "", text) - if '"' in text: + if '"' in text or "'" in text: text = '"' + text.replace('"', '""') + '"' return text