I am trying to develop a functionality where I should be able to read the DOM of a page using PHP. The page can be uploaded using an interface.
My intent is to actually read through the HTML and list out all the containers present in the HTML page.
Need some suggestions on how to go about it.
Stressing on that I want to be able to identify the elements on the page and make a list of all the elements present.