Find phrases/words between HTML using PHP
<p>I was wondering of a solid way to find phrases/words that are part of an HTML document. For example if I have the following document:</p>

<pre><code>&lt;a href="#"&gt;This is a test&lt;/a&gt;&lt;b&gt;Another test&lt;/b&gt;
</code></pre>

<p>My goal is to find "This is a test" and "Another test" and replace it with something else. Note that these are sample phrases and it could contain numbers or the ampersand symbol.</p>

<p>Any help would be great.</p>

<p>Thank you</p>
