Fix bug with vanishing doctype
This commit is contained in:
parent
7d54677bb9
commit
cc56bad408
@ -37,4 +37,4 @@ def defragmentize(html):
|
||||
re.escape(FRAGMENT_TAG), '', fragment.text)
|
||||
|
||||
return etree.tostring(dom, method='html', encoding='utf-8',
|
||||
pretty_print=True).decode('utf-8')
|
||||
pretty_print=True, doctype="<!DOCTYPE html>").decode('utf-8')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user