I am looking for good methods of manipulating HTML in PHP. For example, the problem I'm currently have is dealing with malformed html.
I am getting input that looks something like this:
<div>This is some <b>text
As you noticed, the html is missing closing tags. I could use regex or a XML Parser to solve this problem. However, it is likely that I will have to do other DOM manipulation in the future. I am wonder if there is any good PHP libraries that handle DOM manipulation similar to how Javascript deals with DOM manipulation.