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)
// ⚽ 🏀 🏈 ⚾️ 🎾 🏐 🏉 🎱 🏆 🏟 ⛹️ // happened //
'; // // Break out of 2nd-level loop. // continue; // } for ($i = 0; $i < count($title_filters); $i++) { $testing = $title_filters[$i]; if (str_contains($up_title, $testing) == true) { // 🧒 👦 👨👦👦 echo '⚽ 🏀 🏈 ⚾️ 🎾 🏐 🏉 🎱 🏆 🏟 ⛹️ happened
'; // Break out of 2nd-level loop. continue 2; } } $subheadlines = clean_str($item->get_description()); $remove_google_link = explode("
Posted on
get_date('j F Y | g:i a'); ?>
v1.0 Powered by Mozilla Readability (Andres Rey PHP Port) and SimplePie');
$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);
?>
get_title()); ?>