set_feed_url($feed_url); // Run SimplePie. $feed->init(); // This makes sure that the content is sent to the browser as text/html and the UTF-8 character set (since we didn't change it). $feed->handle_content_type(); //replace chars that old machines probably can't handle function clean_str($str) { $str = str_replace( "‘", "'", $str ); $str = str_replace( "’", "'", $str ); $str = str_replace( "“", '"', $str ); $str = str_replace( "”", '"', $str ); $str = str_replace( "–", '-', $str ); $str = str_replace( ' ', ' - ', $str ); return $str; } ?>
Basic HTML Google News Feed. Based on source for 68k.news , originally built by Action Retro .
get_title())); echo "
TOP
WORLD
NATION
BUSINESS
TECHNOLOGY
ENTERTAINMENT
SCIENCE
HEALTH
-=-=-=-=-=-=-=-=-=-=-=-=-=-
Edition
(Change)
get_description()); $remove_google_link = explode("
');
$cleaned_links = str_replace( 'strong>', 'b>', $cleaned_links); //change to
$cleaned_links = str_replace( 'em>', 'i>', $cleaned_links); //change to
$cleaned_links = str_replace( "View Full Coverage on Google News", "", $cleaned_links);
echo $cleaned_links;
?>
Posted on get_date('j F Y | g:i a'); ?> | get_source()); echo ', '; echo clean_str($item->get_category(0)); echo ", "; echo clean_str($item->get_categories()); echo "."; ?>
v1.0 Powered by Mozilla Readability (Andres Rey PHP Port) and SimplePie