how do I filter special charactors while pursing??
- by mathew
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??
foreach ($fdats as $fdat)
{
foreach($fdat->getElementsByTagName('a') as $mdat)
{
$comb[] = trim($mdat->nodeValue);
}
}
and the HTML is something like this
<div class="content1" id="user" style="width: 47%; margin-right: 20px;">
<div class="ad first_row">
<p class="ad" style="width: 70%;">
<a href="/site/users"><img class="dynamic-icon"> James</a>
</p>
the out put is  James, and how do I get rid of Â