Description
Sometimes malformed HTML can cause PHP DOMDocument/libxml to choke/generate a DOM representation that is different from the HTML you may be expecting. This can cause selectors to fail.
Proposed solution
Optionally clean the html before it is processed (using something like html tidy or other tool).
Description Sometimes malformed HTML can cause PHP DOMDocument/libxml to choke/generate a DOM representation that is different from the HTML you may be expecting. This can cause selectors to fail.
Proposed solution Optionally clean the html before it is processed (using something like html tidy or other tool).