3
1
Back

$this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $article['content'] .= "

" . $entry->textContent . "

"; } } return $article; } if(ADD_IDS){ $article['content'] .= "

" . $entry->textContent . "

"; } } return $article; } function rel2abs($rel, $base) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $img = $matches[1]; } } if(ADD_IDS){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } } // Least.

New Pull Request