View Full Version : get elements by tag name <a>

03-19-2009, 02:09 PM

I am trying to get all active links from a txt document but I can only get the attribute name i.e the text of the link and not the link it self.

echo '<ul>';

foreach ($elements as $kw) {
echo '<li>'.htmlentities($kw->nodeValue).'</li>';
echo '</ul>';

I have tried adding =href to between the '<li>' but not working any ideas?

Thanks in advance

03-19-2009, 03:26 PM
The href attribute should contain the actual link.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum