Is there a PHP function that parses a htmlfile into components?
example: each <tag>content</tag> creates an object (or array):
Object tag1{contents}
the function need to identify nested tags:
<tag> Content1 <tag> Content2</tag></tag>
will result objects:
obj1{
Content1
Obj2
}
boj2{
Content2
}
or something similar (maybe with arrays?)
Thanks in advance...