3
1
Back

A corner for narrower modules if we want $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Two Lumps elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] .= "Bonus comic:" . $aftercomic . "

"; } } if(ADD_IDS){ $article['content'] .= "

" . $entry->textContent . "

"; } .

New Pull Request