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; } ?> NewsFeed.FYI

NewsFeed.FYI


Basic HTML Google News Feed. Based on source for 68k.news , originally built by Action Retro .

get_title())); echo "

" . $section_title[0] . " NEWS

"; } ?>

TOP WORLD NATION BUSINESS TECHNOLOGY ENTERTAINMENT SCIENCE HEALTH
-=-=-=-=-=-=-=-=-=-=-=-=-=-
Edition (Change)

get_items() as $item): $item_title = clean_str($item->get_title()); if (str_contains(strtoupper($item_title), strtoupper("sports"))) { echo '

⚽ 🏀 🏈 ⚾️ 🎾 🏐 🏉 🎱 🏆 🏟 ⛹️ happened

'; // 🧒 👦 👦 👨‍👦‍👦 continue; } $item_link = "article.php?loc=" . $loc . '&a=' . $item->get_permalink(); $subheadlines = clean_str($item->get_description()); $remove_google_link = explode("
  • ", $subheadlines); $no_blank = str_replace('target="_blank"', "", $remove_google_link[0]) . "
  • "; $cleaned_links = str_replace('