RE: [PHP] parsing html / xml (more)
| From: | Nathaniel Hekman | Date: | Wed, 07 Mar 2001 20:39:27 +0000 |
| Subject: | RE: [PHP] parsing html / xml (more) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42948@lists.php.net to get a copy of this message | ||
Matt McClanahan wrote:
[...]
> You're not going to find an XML parser that allows for most HTML,
> because if such a parser did exist, it would be a broken XML parser. :)
[...]
Fair enough, and that's as I expected. So that brings me to the second part
of my question: is there any php library that allows parsing of html?
Perhaps I'll have to write one myself. All I want really is something that
parses a bunch of text and calls handlers whenever tags are encountered.
Just like xml_parse, except I don't care if tags are out of order, I don't
care about case, and I don't care if there is a close tag for every open.
If anyone knows of a package that does this, please advise. If anyone else
would be interested in this, let me know and I could post my code when I'm
done (if I have to do this myself).
Nate