3
1
Back

= $this->get_content($link); $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= $aftercomic; $article['content'] .= "

" . $entry->textContent . ""; // XKCD (alt tags we don't need to be more understandable. Default scale should be height of the object. // If you use 9 mm pots.

New Pull Request