3
1
Back

Title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); } function rel2abs($rel, $base) { function rel2abs($rel, $base) { if (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; } } } //Sites that provide images and just need alt tags textified. } $article = $this->alt_textify($article); if (ADD_IDS) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); Assorted updates elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "
ID.

New Pull Request