3
1
Back

DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Camp Weedonwantcha // Camp Weedonwantcha elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // And get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags if both.

New Pull Request