2013-07-18 | Paul Boddie | file changeset files shortlog | Improved error handling when obtaining remote HTML resources. |
paul@362 | 1 | #!/usr/bin/env python |
paul@362 | 2 | |
paul@362 | 3 | import libxml2dom |
paul@362 | 4 | |
paul@362 | 5 | html = "<bad" |
paul@362 | 6 | |
paul@362 | 7 | print libxml2dom.parseString(html, html=True) |
paul@362 | 8 | |
paul@362 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |