dongzhaorui hace 3 años
padre
commit
697bad6c1c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      find_source/common/tools.py

+ 1 - 1
find_source/common/tools.py

@@ -11,7 +11,7 @@ def element2html(element: HtmlElement) -> str:
 
 
 def html2element(html_str: str) -> HtmlElement:
-    html_str = re.sub('\ufeff|\xa0|\u3000', '', html_str)
+    html_str = re.sub('\ufeff|\xa0|\u3000|\x00', '', html_str)
     html_str = re.sub('</?br.*?>', '', html_str)
     html_str = re.sub(r'<\?xml.*?>', '', html_str)
     html_str = re.sub(r'<[!]DOCTYPE.*?>', '', html_str)