3
1
Back

And ours, we want $url_xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); // Doghouse Diaries, which has broken alt tags elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } Pain Train (to get alt tags elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // slightly complicated; the link is to tumblr, but there's a url in the Work (i) in all.

New Pull Request