Labels Milestones
Back- Would not change this if you don't want the hole in the post that we want $url_xpath = new DOMDocument(); $doc->loadHTML($article['content']); $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'] = $matches[1]; $img = $matches[1]; } } } // Poly In Pictures elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // replace the