diff --git a/src/calibre/ebooks/lit/reader.py b/src/calibre/ebooks/lit/reader.py index 1a08803126..4197ea7686 100644 --- a/src/calibre/ebooks/lit/reader.py +++ b/src/calibre/ebooks/lit/reader.py @@ -110,6 +110,9 @@ def consume_sized_utf8_string(bytes, zpad=False): class UnBinary(object): AMPERSAND_RE = re.compile( r'&(?!(?:#[0-9]+|#x[0-9a-fA-F]+|[a-zA-Z_:][a-zA-Z0-9.-_:]+);)') + OPEN_ANGLE_RE = re.compile(r'<<(?![!]--)') + CLOSE_ANGLE_RE = re.compile(r'(?