Commit be5c093b authored by Sam Ruby's avatar Sam Ruby

Fix regression on handling non-bozo xhtml content and summaries

parent f2ac9246
......@@ -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')
parser = liberalxmlparser.XHTMLParser(tree=treebuilders.dom.TreeBuilder)
html = parser.parse(xdiv % detail.value, encoding="utf-8")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment