3
1
Back

Invisiblebread has no bread Fix for when invisiblebread has no bread Pain Train (to get alt tag) elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (GDORN_DEBUG && $article['debug']) { } //Sites that provide images and just need alt tags textified. } $article = $this->alt_textify($article); $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $img; if (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath.

New Pull Request