diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-05-08 23:19:42 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-05-08 23:19:42 -0400 |
commit | 675118869f07a78ffe380b2b925ca30ab050fc98 (patch) | |
tree | a1d2b712d3cb9ec3d06d0c4c2bc3ae43a801cac6 /askbot/mail | |
parent | a676a86b6b7a5737d4da4f59f71e037406f88d29 (diff) | |
download | askbot-675118869f07a78ffe380b2b925ca30ab050fc98.tar.gz askbot-675118869f07a78ffe380b2b925ca30ab050fc98.tar.bz2 askbot-675118869f07a78ffe380b2b925ca30ab050fc98.zip |
require html5lib for bs4 for better compatibility with apache
Diffstat (limited to 'askbot/mail')
-rw-r--r-- | askbot/mail/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/mail/__init__.py b/askbot/mail/__init__.py index a2f53017..8b999534 100644 --- a/askbot/mail/__init__.py +++ b/askbot/mail/__init__.py @@ -90,7 +90,7 @@ def clean_html_email(email_body): todo: needs more clenup might not work for other email templates that do not use table layout """ - soup = BeautifulSoup(email_body) + soup = BeautifulSoup(email_body, 'html5lib') body_element = soup.find('body') filter_func = lambda s: bool(s.strip()) phrases = map( |