Also fix clean_html so that it doesn't barf on an empty string.
This commit is contained in:
@@ -373,6 +373,10 @@ HTML_CLEANER = Cleaner(
|
|||||||
|
|
||||||
|
|
||||||
def clean_html(html):
|
def clean_html(html):
|
||||||
|
# clean_html barfs on an empty string
|
||||||
|
if not html:
|
||||||
|
return u''
|
||||||
|
|
||||||
return HTML_CLEANER.clean_html(html)
|
return HTML_CLEANER.clean_html(html)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user