I'm using simplehtmldom and I'm trying to get all links from a website. This is my script:
// get DOM from URL or file
$html = file_get_html('http://example.com/urls/');
// find all a tags
foreach($html->find('a') as $e)
echo $e->href . "\n";
Just decode incoming url like this :
It will give the decoded url for string.