Hi, I am trying to use magpierss to parse a blog feed and display it on a page. I noticed that when the blog post title has an apostrophe in it a question mark will display for the apostrophe. Here is the code I am using: <?php define('MAGPIE_DIR', 'magpierss/'); require_once('magpierss/rss_fetch.inc'); $rss = fetch_rss("http://www.reality-tv-online.com/blog/feed/"); $num_items = 6; $items = array_slice($rss->items, 0, $num_items); foreach ($items as $item ) { $href = $item['link']; $title = $item['title']; $description = $item['description']; $published = strtotime($item['pubdate']); $author = $item['dc']['creator']; echo "<h2>$title</h2>"; echo "<P class=\"with-bg\">"; echo $description; echo "<br><br><small>Read more from <a href=$href>$title</a></small>"; echo"<br><br><small>Added: " . date("F d, Y h:i:s A", $published) . "</small>"; echo"<br>By: " . $author; echo "</P>"; } ?> Any help would be appreciated. Thanks in advance
Before you pass the text out to the page you actually need to run it through a "cleaner" function - there was a particularly good example in a post here. If I can find it I'll post a link