If(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry) { $article['content'] .= "$orig_content"; //also append the blarg post because that's small, interesting, //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .
$orig_content
alt
click/enter