title: PHP - Extracting text from HTML
body: <p>I have a long string of HTML that contains </p>
  
  <pre><code>&lt;p&gt;
  &lt;img&gt;
  &lt;span&gt; 
  </code></pre>
  
  <p>and a bunch of other tags.</p>
  
  <p>Is there anyway of extracting ONLY the text within the tags from this string?</p>