Labels Milestones
BackDOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches if ($img->getAttribute('title')) { $article['content'] = $img_tag . $article['content']; } // PhD Unknown elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry){ $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "
" . $msg . ""; } } return $article; } function. New Pull Request