Browse Source

Clarify parser used, use html.parser for BeautifulSoup parsing

Guénaël Muller 7 years ago
parent
commit
52220db2b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tracim/tracim/lib/email_fetcher.py

+ 1 - 1
tracim/tracim/lib/email_fetcher.py View File

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