diff --git a/src/calibre/ebooks/chardet.py b/src/calibre/ebooks/chardet.py index 682f32f39f..94a7c1701f 100644 --- a/src/calibre/ebooks/chardet.py +++ b/src/calibre/ebooks/chardet.py @@ -19,6 +19,7 @@ _encoding_pats = ( # HTML 4 Pragma directive r''']*?content\s*=\s*['"][^'"]*?charset=([-_a-z0-9]+)[^'"]*?['"][^<>]*>(?:\s*){0,1}''', ) +substitute_entities = xml_replace_entities # for plugins that might use this def compile_pats(binary):