3
1
Back

$xpath->query("//div[@id='blarg']/div[last()]"); // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { // only keep everything starting at the first elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = new DOMDocument(); elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(get_img_tags($xpath, "//div[@class='timeline-description']", $article); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif.

New Pull Request