3
1
Back

Alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(get_img_tags($xpath, "//div[@id='comic-img']//img", $article); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ $text_element = $doc->createElement("i", $alt_text); $para_element->appendChild($text_element); } elseif (strpos($alt_text, $title_text) !== false){ $text_element = $doc->createElement("i", $alt_text); Latest commits for branch traces_before_hard_sync traces added but maybe.

New Pull Request