3
1
Back

$article['title'] || strpos($article['title'], $alt_text) !== false){ } elseif (strpos($title_text, $alt_text) !== False) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ // there's both alt and 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); $para_element->appendChild($title_element); } $img->parentNode->replaceChild($new_element, $img); } function rel2abs($rel, $base) { Fix.

New Pull Request