how do I filter special charactors while pursing?
<p>hi I am doing html pursing with php dom document
I am getting some special charators in my result how do I filter the same??</p>

<pre><code>foreach ($fdats as $fdat)
{
    foreach($fdat-&gt;getElementsByTagName('a') as $mdat)
    {
                $comb[] = trim($mdat-&gt;nodeValue);
    }

}
</code></pre>

<p>and the HTML is something like this</p>

<pre><code>&lt;div class="content1" id="user" style="width: 47%; margin-right: 20px;"&gt;
&lt;div class="ad  first_row"&gt;
&lt;p class="ad" style="width: 70%;"&gt;
&lt;a href="/site/users"&gt;&lt;img class="dynamic-icon"&gt;&amp;nbsp; James&lt;/a&gt;
&lt;/p&gt;
</code></pre>

<p>the out put is <code>Â James</code>, and how do I get rid of <code>Â</code></p>
