3
1
Back

Tags textified. $doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; // only keep everything starting at the first if(preg_match("@.*(query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $doc = new DOMDocument(); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article.

New Pull Request