summaryrefslogtreecommitdiffstats
path: root/askbot/views
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/views
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/views')
-rw-r--r--askbot/views/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/views/commands.py b/askbot/views/commands.py
index dee8d1e4..b2c8a788 100644
--- a/askbot/views/commands.py
+++ b/askbot/views/commands.py
@@ -1489,7 +1489,7 @@ def get_editor(request):
)
#parse out javascript and dom, and return them separately
#we need that, because js needs to be added in a special way
- html_soup = BeautifulSoup(editor_html)
+ html_soup = BeautifulSoup(editor_html, 'html5lib')
parsed_scripts = list()
for script in html_soup.find_all('script'):