Stewart Robinson
Stewart Robinson

Reputation: 3539

What php html tokenizer's can I use?

I need to process html submitted in my web application and don't want to munge the whole thing with regular expressions. What tokenizer approach and/or software should I take?

Upvotes: 1

Views: 1271

Answers (1)

Gumbo
Gumbo

Reputation: 655189

I would use the DOMDocument::loadHTML method to load the HTML document. And if you want a simpler handling than the DOMDocument methods, you can convert it to a SimpleXML object by using simplexml_import_dom().

Upvotes: 3

Related Questions