It was suggested to me that in order to close some "dangling" HTML tags, I should use PHP's DOM extension and loadHTML.
I've been trying for a while, searching for tutorials, reading this page, trying various things, but can't seem to figure out how to use it to accomplish what I want.
I have this string: <div><p>The quick brown <a href="">fox jumps...
I need to write a function which closes the opened HTML tags.
Just looking for a starting point here. I can usually figure things out pretty quick.