diff --git a/src/calibre/ebooks/chardet.py b/src/calibre/ebooks/chardet.py index 94a7c1701f..0caaa05f5e 100644 --- a/src/calibre/ebooks/chardet.py +++ b/src/calibre/ebooks/chardet.py @@ -19,7 +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 +substitute_entities = substitute_entites = xml_replace_entities # for plugins that might use this def compile_pats(binary):