Labels Milestones
BackTag. Function alt_textify($article, $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Questionable Content (cleanup) elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = new DOMDocument(); // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags textified. $article['content'] .= "
" . $entry->textContent . "
"; $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "
"; // only keep everything starting at the first