3
1
Back

$xpath->query('//img'); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || strpos($article['title'], $title_text) !== false){ } elseif ($alt_text == $article['title'] || strpos($article['title'], $title_text) !== False) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = new DOMDocument(); // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } elseif (strpos($title_text, $alt_text) !== False) { $alt_text = $entry->getAttribute('alt'); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text && !$title_text) { $new_element->appendChild($para_element); if ($alt_text && !$title_text){ $text_element = $doc->createElement("i", $title_text); } function.

New Pull Request