From: Jeremy A. <ash...@13...> - 2004-08-20 15:50:15
|
If you are passing HTML in an RSS/RDF feed, You usually either encode the HTML by translating any special characters (<,>,&,etc) when generating the feed. If you use Atom, you set the content type attribute of the content tag and just place HTML within. Atom parsers are supposed to be smart enough to parse out the HTML. I don't mind having mulitple feed types, as it is common across alot of sites. I like to give endusers flexibility in what they can do. I know that I don't like to be limited to one way of doing things. :) Jim Hu wrote: > I agree and have a question - when should we use rss to move content > to another application vs. using a different kind of feeding? It was > my sense from my limited reading about RSS that HTML tags shouldn't go > along with the RSS, but that we can pass the html using other kinds of > feeds. > > This also leads to the question of how much to allow customization of > the feeds on the simplog side vs. having the receiving application > process the info. For example, the magpie page describes a nice way > to use array_slice() to display a subset of entries. > > http://magpierss.sourceforge.net/ > > Jim > > On Aug 20, 2004, at 10:03 AM, Jason Buberel wrote: > >> That seems like a reasonable thing to do, IMO. >> >> Carlos Garces wrote: >> >>> Hi! >>> This is my first post in this list! >>> >>> I need to generate diferents RSS feeds by category to integrate >>> simplog feeds >>> with other aplication. >>> >>> I have modify rss2.php, in line: >>> [code] >>> //now grab the last 20 entries from that blog. >>> blogEntries = $blogInfo->getLastNEntries(20); >>> [/code] >>> I put this new code >>> [code] >>> if(isset($_REQUEST['blogid']) && isset($_REQUEST['cid'])) { >>> //Get entries by category >>> $blogEntries = $blogInfo->getBlogEntriesByCriteria($_REQUEST['keyw'], >>> $_REQUEST['pid'], $_REQUEST['cid'], $date, $_REQUEST['eid']); >>> }else{ >>> // now grab the last 20 entries from that blog. >>> $blogEntries = $blogInfo->getLastNEntries(20); >>> } >>> [/code] >>> >>> Now I can get one category with this URL >>> http://localhost/simplog/rss2.php?blogid=1&cid=2 >>> >>> Any comments to this code? >>> >>> Un saludo >>> Carlos Garces >>> >>> >>> . >> |