3
1
Back

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($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $alt_text); } elseif ($alt_text == $title_text){ } elseif (strpos($alt_text, $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($text_element); } elseif ($alt_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { $alt_text = $entry->getAttribute('title'); $alt_text = trim($entry->getAttribute('alt')); $alt_text = $entry->getAttribute('title'); $alt_text = trim($entry->getAttribute('title')); $result_html .= "
Alt: " . $article['id']; } return $article; } $article = $this->alt_textify($article); $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } //noop elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } */ // // Physical.

New Pull Request