3
1
Back

Each author's protection and ours, we want $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { From 3afa35e4b17ae9426036976f5252a8b43f759734 Mon Sep 17 00:00:00 2001 ttrss-plugin- _comics/init.php 399 lines } Pain Train (to get alt tags textified. } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debugging'] as $msg) { if ($title_text == $article['title'] || strpos($article['title'], $title_text) !== False) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $title_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); $title_element = $doc->createElement("i", $alt_text); } elseif ($alt_text == $article['title'] || strpos($article['title'], $title_text) !== false){ } elseif (strpos($title_text, $alt_text) !== false){ $text_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } Clean up code formatting; added.

New Pull Request