mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Put back substitute_entites in chardet.py as it is used by some third plarty plugins
This commit is contained in:
parent
b5d2eb3ea9
commit
f8f3c8c685
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user