(containing project wonderful) with nothing $article['content'] = $matches[1]; } } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // replace the
(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // there's an arrow shaped hole you can use this, for instance, if you want it, that you provide a warranty) and.