3
1
Back

//no-op $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] .= "

Bonus comic:
" . $aftercomic . ""; if (ADD_IDS) { $new_element->appendChild($para_element); if ($alt_text && $alt_text != $article['title']){ $result_html .= "Alt: " . $article['id']; } return $article; } Some comics supported elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); } // Three Panel Soul elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Wondermark (alt tag already present foreach ($imgs as $img) { if (preg_match("@.*(createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br.

New Pull Request