Przeglądaj źródła

Clarify parser used, use html.parser for BeautifulSoup parsing

Guénaël Muller 7 lat temu
rodzic
commit
52220db2b4
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tracim/tracim/lib/email_fetcher.py

+ 1 - 1
tracim/tracim/lib/email_fetcher.py Wyświetl plik

87
 
87
 
88
     @classmethod
88
     @classmethod
89
     def _parse_html_body(cls, html_body: str):
89
     def _parse_html_body(cls, html_body: str):
90
-        soup = BeautifulSoup(html_body)
90
+        soup = BeautifulSoup(html_body,'html.parser')
91
         config = BEAUTIFULSOUP_HTML_BODY_PARSE_CONFIG
91
         config = BEAUTIFULSOUP_HTML_BODY_PARSE_CONFIG
92
         for tag in soup.findAll():
92
         for tag in soup.findAll():
93
             if DecodedMail._tag_to_extract(tag):
93
             if DecodedMail._tag_to_extract(tag):