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:

$news = simplexml_load_file('');

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


Popular posts from this blog

Set limit wp_nav_menu

Conut document have children that are show in navigation