summaryrefslogtreecommitdiffstats
path: root/askbot/mail
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-08 23:19:42 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-08 23:19:42 -0400
commit675118869f07a78ffe380b2b925ca30ab050fc98 (patch)
treea1d2b712d3cb9ec3d06d0c4c2bc3ae43a801cac6 /askbot/mail
parenta676a86b6b7a5737d4da4f59f71e037406f88d29 (diff)
downloadaskbot-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__.py2
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(