i found out all the b tags but how do i take the text content from the b tags..please help
<?php
$doc = new DOMDocument(); // An instance of DOMDocument
@$doc->loadHTMLFile('http://www.web-source.net/web_design_tips/');
$doc2 = new DOMDocument(); // An instance of DOMDocument
@$doc2->loadHTMLFile('http://www.web-source.net/html_codes_chart.htm');
$xpath = new DOMXPath($doc);
$xpath2 = new DOMXPath($doc2);
$List=array();
$List2=array();
$List[] = $doc->getElementsByTagName("b");
$List2[] = $doc2->getElementsByTagName("b");
$textBoth = array_intersect($List, $List2);
foreach ($textBoth as $text)
{ // Loops through the src strings that are common to both documents
$text->parentNode->removeChild($text);
}
echo $doc->saveHTML();
?>