Showing posts from January 20, 2015

PHP get Google News RSS Feed

If you know how to get the HTML data from the right XML-element (<description> in this case) you can just strip all HTML with PHP's strip_tags

This seems to work like you want it:

<?php $news = simplexml_load_file(''); foreach($news->channel->item as $item) {         echo "<h1>" . $item->title . "</h1>";     echo '<p>' . strip_tags($item->description) ."</p>"; } ?>