diff --git a/anki/latex.py b/anki/latex.py index f46e0a654..e4d7fbbb9 100644 --- a/anki/latex.py +++ b/anki/latex.py @@ -64,9 +64,6 @@ def _latexFromHtml(col, latex): # entitydefs defines nbsp as \xa0 instead of a standard space, so we # replace it first latex = latex.replace(" ", " ") - for match in re.compile("&([a-z]+);", re.IGNORECASE).finditer(latex): - if match.group(1) in entitydefs: - latex = latex.replace(match.group(), entitydefs[match.group(1)]) latex = re.sub("", "\n", latex) # replace
etc with spaces latex = re.sub("<.+?>", " ", latex)