3
1
Back

Both different, use both. $alt_element = $doc->createElement("i", $title_text); } elseif (strpos($title_text, $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. } elseif (strpos($title_text, $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); } elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . ""; // XKCD (alt tags we don't need to call out for) $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] .= "

" . $entry->textContent . "

"; } .

New Pull Request