3
1
Back

// --------------------- // Degree of detail in the post that we want $url_xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $title_text) !== false){ } elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { //no-op function rel2abs($rel, $base) { if ($rel[0] == '#' || $rel[0] == '?') { return $base . $rel; .

New Pull Request