3
1
Back

Trim($entry->getAttribute('alt')); $alt_text = trim($entry->getAttribute('alt')); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || strpos($article['title'], $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. } elseif (strpos($alt_text, $title_text) !== false.

New Pull Request