Hi, I need to extract all the tags from an HTML file, In such a way that I would end up with either an array containing key=value for each of the attributes, or at least the raw text that makes up the tag.
I don't quite get along with regex, much less in PHP, so I would really appreciate some help in this.
PD: Some of the tags may span several lines and be indented with tabs and spaces on the subsequent lines.
Thanks.