Jump to content

[SOLVED] HTML Parsing


rarebit

Recommended Posts

If it's strict XML or XHTML, you can use any of the PHP XML Parsing packages. SimpleXML is by far the easiest. If it's just HTML from some page, in which you can't guarantee it's well formed, you will have to use regular expressions to strip out the data you want.

Link to comment
https://forums.phpfreaks.com/topic/132645-solved-html-parsing/#findComment-689851
Share on other sites

Basically into some form of array so it can be studied for seo quality...

 

DOMDocument, Tidy and a few others don't seem to be installed on my server, so i'm currently having a look at XML Parser and simpleXML, but have also grabbed a few preg_split concoctions.

 

Any suggestions?

Link to comment
https://forums.phpfreaks.com/topic/132645-solved-html-parsing/#findComment-689852
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.