I use Simple HTML DOM Parser to match elements and extract the content required. However what I would like to do is to be able to get all of the HTML outside of
Say the HTML is
<body>
<div id="otherContent"></div>
<div id="content"></div>
<div id="otherContent2"></div>
</body>
I want to be able to get everything outside of the #content div.
Can Simple HTML DOM Parser can do this? I guess regex would be possible but a more elegant solution like HTML parser would be great.