1
votes

How can I scrape contents with special characters using the following code? Currently, the code decode the special-characters and return the following.

["><font size="2">1</font></span>]

 $url = 'http://acbar.org/ManagejobDetails.aspx?id=' . $jobid ;
   $html_dom = new simple_html_dom() ;
   $html_dom = file_get_html($url) ;
   
   
    
   foreach($html_dom->find('table [cellspacing=3] tr') as $e) {
           $children = $e->children() ;
           $size = count($children) ;
           if($size == 2) {
                   $label = $children[0]->children(0);
                   $value = $children[1]->children(0);;
                   $createXML .= createRSSFile($label,$value);
           }
   }
1

1 Answers