Best way to parse an invalid HTML in PHP

Viewed 6479

Is there a better approach to parse an invalid HTML then applying Tidy on it?

Side Note : There are some situation when you can't have Tidy available. Regexp is also not recommended I understood for parsing html.

2 Answers
Related