} unset($single_page_response); } } if ($do_content_extraction) { debug('--------'); debug('Attempting to extract content'); $extract_result = $extractor->process($html, $effective_url); $readability = $extractor->readability; // if user has asked to see parsed HTML, show it and exit. if ($debug_show_parsed_html) { debug("Here's the full HTML after it's been parsed by Full-Text RSS:"); die($readability->dom->saveXML($readability->dom->documentElement)); } // is this a native ad? if ($extract_result && $extractor->isNativeAd()) { debug("This article appears to be a native ad"); if (!$isDummyFeed && $options->remove_native_ads) { continue; // skip this feed item entry } } $content_block = $extract_result ? $extractor->getContent() : null; $extracted_title = $extract_result ? $extractor->getTitle() : ''; // Deal with multi-page articles //die('Next: '.$extractor->getNextPageUrl()); $is_multi_page = !$is_single_page && $extract_result && $extractor->getNextPageUrl(); if ($options->multipage && $is_multi_page && $options->content) { debug('--------'); debug('Attempting to process multi-page article'); $multi_page_urls = array();