Hi i am loading content from external url. something like this.

```
$html=get_data($external_url);

```

where get\_data() is a function for getting content using curl.

now after this , i want to get the inner html from different html elements like h1,div,p,span by using their class or id.

for example
if the content from external url($html) is something like this.

```
<html>
<title></title>
<body>
    <h1 class="title">I am title</h1>
    <div id="content">
        i am the content.
    </div>
</body>

```

now i want to get the inner html of a html tag with class="title". similarly i want to get inner html of a tag with id="content"

How to do this using php? i have no knowledge about DOM, XML. please help.