I’m looking for a solution for parsing potentially malformed HTML in C++, similar to what Beautiful Soup does in Python.
Normally, just using an XML parser would work, but the specific HTML in this case isn’t valid XML/XHTML and can’t be properly parsed.
Do libraries/tools for this exist?
You can use HTMLTidy to transform HTML into valid XML and then use any C++ XML parser availiable