HTML: HTML SAX Parser
Alexey G. Piyanin (contact me)
This class can parse HTML documents using regular expressions to split the document character data, the begin and end tag elements.
For each type of elements, the class call custom callback that can do any type of processing. The callback functions may bu global or be functions of a class of a given object.
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Good (89.3%)
| Good (89.3%)
| Not sure (54.2%)
| Good (92.9%)
| -
| -
| Sufficient (68.3%)
| 219 |
Click here for detailed information about this class on phpclasses.org
Data
Image for example1.html
Data
Image for example1.html
Data
Image for example1.html
Data
Image for example1.html
Example
Example #1 (show only images on page)
Example
Example #1 with use class
Example
Example #2 (page tree)
Example
Example #2 with use class
Example
Example #3 (find only first image)
Example
Example #3 with use class
Example
Example #4 (get body tag content)
Example
Example #5 (get page part - news on yahoo.com)
Example
Example #6 (get wikipedia page content)
Class
Class use in examples