grab text in the middle to a variable
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2345670/php-domdocument-get-html-source-of-body">PHP DOMDocument - get html source of BODY</a>  </p>
</blockquote>



<p>I have the following code as a variable and trying to grab everything in between the body tags (while keeping the p tags etc). Whats the best way of doing this?</p>

<ul>
<li>pregmatch</li>
<li><p>strpos / substr</p>

<pre><code>&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;p&gt;Services Calls2&lt;/p&gt;
&lt;/body&gt;
</code></pre></li>
</ul>
