chyduskam wrote:RomovNet wrote:Some comments.
Don't use encoded HTML in the description. Use CDATA as per XML specs to significantly decrease file size. You'll only need to escape user's attempts to break feed by issuing ]]>
I know about it. But as I know too on some RSS agregators it's not work.
RomovNet wrote: I see no reason to use obsoleted <dc:> namespace elements in RSS 2.0.Use native author and category instead of creator and subject. Who cares if RSS 2.0 native author requires an email of the author? Well, I guess that doesn't really matter since it could be adjusted by any user in their template.
But I see.
1. See RSS 2.0 specification to <author>. It need author e-mail.
2. I test more then 20 RSS agregators. "dc:subject" work best then "category" at all.
RomovNet wrote: Also, could you please tell which feed reader does support and make any use of <annotate:reference> and <guid> that you have?
1. It use in NewzCrawler to make NNTP-style tree
2. About <guid> look in RSS 2.0 specification.
You also can modify rss_body.tpl: replace dc:subject and dc:creator
to category and author, remove <guid>, use CDATA and so on.
But I try to give complex valid solution that woked in most RSS agregators so I don't change template.
P.S. In ver. 2.3 I'll use 3 user-selected formats: HTML-encoded, CDATA and plain-text. But default format must be HTML-encoded. I write about it in Russian week or more ago. This is part of new rss_config.php for ver. 2.3.0. (at work now):
Code: Select all
// Output format. Can be reset by user with using 'show' key. For ex. show=b - turn bbCode off, show=B turn bbCode on $rss_config=array( 'bbCode'=>true, // [b] Parse bbCode, if set to false - remove it. 'show_smiles'=>true, // [s] Parse smiles, if set to false show as text 'user_sig'=>true, // [u] Add user signature to post 'img'=>true, // [i] Show image in feed. Set false to skip all img tags. 'format'=>true, // [f] Using inline style in tags 'UseRE'=>true, // [r] Show RE: in subject 'show_message'=>true, // [m] Show message in RSS 'HTML'=>true, // [h] Show message as HTML. If set to false it'll be shown as plain text. 'CDATA'=>false, // [c] Show message in CDATA brackets // Next data can not be overwriten by user 'message_limit'=>false, // Limit message len in chars 'message_len'=>1000 // Max message len );