3
1
Back

Want $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; if (ADD_IDS) { $article['content'] .= "
$orig_content
"; } // Dinosaur Comics alt tags+blog), CAD, attempt at OOTS (but that one fails.