3
1
Back

Both. } elseif (strpos($alt_text, $title_text) !== False) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { if (!$alt_text || strpos($article['title'], $alt_text) !== False) { if ($title_text == $article['title'] || strpos($article['title'], $title_text) !== false){ // there's both alt and title texts, they're both different, use both. } elseif (strpos($alt_text, $title_text) !== false){ $text_element = $doc->createElement("i", $title_text); } function get_img_tags($xpath, $query, $article){ /* dirty absolute URL */ $abs = preg_replace($re, '/', $abs.

New Pull Request