mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-21 14:26:33 -04:00
Put back substitute_entites in chardet.py as it is used by some third plarty plugins
This commit is contained in:
@@ -19,6 +19,7 @@ _encoding_pats = (
|
||||
# HTML 4 Pragma directive
|
||||
r'''<meta\s+?[^<>]*?content\s*=\s*['"][^'"]*?charset=([-_a-z0-9]+)[^'"]*?['"][^<>]*>(?:\s*</meta>){0,1}''',
|
||||
)
|
||||
substitute_entities = xml_replace_entities # for plugins that might use this
|
||||
|
||||
|
||||
def compile_pats(binary):
|
||||
|
||||
Reference in New Issue
Block a user