Fixed bug in Html_cleaner which produced broken tags like "<br/>" instead of "<br />"
This commit is contained in:
parent
7a2936f857
commit
e052e3b357
|
@ -194,7 +194,7 @@ class Html_cleaner(HTMLParser):
|
||||||
if bt == "<a" or bt == "<img":
|
if bt == "<a" or bt == "<img":
|
||||||
return
|
return
|
||||||
if tag in self.requires_no_close:
|
if tag in self.requires_no_close:
|
||||||
bt += "/"
|
bt += " /"
|
||||||
bt += ">"
|
bt += ">"
|
||||||
self.result.append( bt )
|
self.result.append( bt )
|
||||||
self.open_tags.insert(0, tag)
|
self.open_tags.insert(0, tag)
|
||||||
|
|
Reference in New Issue