extract-html-diff
extract-html-diff copied to clipboard
Can't diff empty HTML string
import extract_html_diff
html = ''
other_html = '<div> <h1>My site</h1> <div>Other content</div> </div>'
extract_html_diff.as_string(html, other_html)
Error returned is lxml.etree.ParserError: Document is empty
Should just return other_html in this case.