mirror of
https://github.com/khoaliber/LetterFeed.git
synced 2026-03-02 05:29:13 +00:00
fix unescape html
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import email
|
||||
import html
|
||||
import imaplib
|
||||
from email.header import decode_header, make_header
|
||||
from email.message import Message
|
||||
@@ -69,7 +70,7 @@ def _get_email_body(msg: Message) -> str:
|
||||
body = payload.decode(charset, "ignore")
|
||||
except Exception:
|
||||
pass
|
||||
return body
|
||||
return html.unescape(body)
|
||||
|
||||
|
||||
def _auto_add_newsletter(
|
||||
|
||||
Reference in New Issue
Block a user