Fix regression on handling non-bozo xhtml content and summaries
This commit is contained in:
parent
f2ac92465d
commit
be5c093b34
@ -148,6 +148,7 @@ def content(xentry, name, detail, bozo):
|
||||
|
||||
if detail.type.find('xhtml')>=0 and not bozo:
|
||||
data = minidom.parseString(xdiv % detail.value).documentElement
|
||||
xcontent.setAttribute('type', 'xhtml')
|
||||
else:
|
||||
parser = liberalxmlparser.XHTMLParser(tree=treebuilders.dom.TreeBuilder)
|
||||
html = parser.parse(xdiv % detail.value, encoding="utf-8")
|
||||
|
Loading…
Reference in New Issue
Block a user