mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-24 01:57:32 +01:00
Replaced lxml with html5lib
This commit is contained in:
parent
5f83b4a423
commit
ac6292d614
2
setup.py
2
setup.py
@ -32,7 +32,7 @@ install_requires = [
|
||||
"django-treebeard==2.0",
|
||||
"Pillow>=2.3.0",
|
||||
"beautifulsoup4>=4.3.2",
|
||||
"lxml>=3.3.0",
|
||||
"html5lib==0.999",
|
||||
"Unidecode>=0.04.14",
|
||||
"six==1.7.3",
|
||||
'requests==2.3.0',
|
||||
|
@ -81,7 +81,7 @@ class Whitelister(object):
|
||||
def clean(cls, html):
|
||||
"""Clean up an HTML string to contain just the allowed elements /
|
||||
attributes"""
|
||||
doc = BeautifulSoup(html, 'lxml')
|
||||
doc = BeautifulSoup(html, 'html5lib')
|
||||
cls.clean_node(doc, doc)
|
||||
return doc.decode()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user