polotek/libxmljs — Issue #119: Support recovery mode
Author: apeace
Created: 2012-03-06 17:50:58+00:00
State: open

`libxml2` seems to have a "recovery" mode parameter, allowing certain errors such as missing end tags http://xmlsoft.org/html/libxml-parser.html#xmlSAXParseDoc

I think this could be useful for a range of use cases. In particular I deal with RSS feeds a lot. People tend to use HTML entities in their RSS feeds (such as `’`) and this crashes the libxmljs SAX parser.

Perhaps using recovery mode would allow these types of errors to pass through? In any case it would be nice to support this option