","",$rss_content); $rss_content = str_replace("","",$rss_content); $articles = array(); $xml = simplexml_load_string($rss_content); if ($xml === false) { echo 'Failed to read RSS'; } else { $channel = array(); $channel['title'] = $xml->channel->title; $channel['link'] = $xml->channel->link; $channel['description'] = $xml->channel->description; $channel['pubDate'] = $xml->channel->pubDate; $channel['timestamp'] = strtotime($xml->channel->pubDate); echo '
'); $newStrings = array(''); $article_only = str_replace($orgStrings, $newStrings, $article_only); */ $temp = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $article_only); $article_only = $temp; $temp = preg_replace('/\s\s+/', ' ', $article_only); $article_only = $temp; $re='/