Put back substitute_entites in chardet.py as it is used by some third plarty plugins

This commit is contained in:
Kovid Goyal
2024-09-20 10:39:51 +05:30
parent b5d2eb3ea9
commit f8f3c8c685
+1
View File
@@ -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):