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