I have text that contain HTML elements. For example like this

```
<div>
    <div>content</div>
    <div>
         <div id="myId">
            <p>
                <span>content</span>
                <span>content</span>
            </p>
        </div>
    </id>   
</div>

```

I want to get `innerHTML` of some element from this text using javascript like this example

```
// HTML variable contain above HTML text
var innerHTML = HTML.getElementById('myId').innerHTML;

```

Is it possible? Or other way like this way?