// post · 176

RSS Formatting

·

My RSS was a touch dodgy (well it still is dodgy but it is better), it never used to format things, like new lines and urls etc.

Simple fix needed to wrap the content around content here . So yeah, formatted RSS. Funky. ;)

// comments

· Josh Street user
Watch out, your comments RSS doesn't work great in my reader of choice. I haven't validated, etc. but who knows... take a look at it?
· Michael Dale user
Seems to be working here fine.

http://feeds.archive.org/validator/check.cgi?url=http%3A%2F%2Fblog.dalegroup.net%2Frss2-comments.php

Working/Not working for anyone else?
· Josh Street user

encodedcontent



My feedreader is displaying "encodedcontent" for each item -- for fairly obvious reasons. Looks like it's kinda un-dynamic...

Either ditch the content:encoded altogether, or fix it up... preferably fix it up:P
· Matthom guest
I've used tags mainly - so how else would I do it?

It seems to work fine, so no bother.
· Michael Dale user
Sorry about that people. I left a $ off the first time and didn't run htmlspecialchars the second time (note htmlentities is bad, stuffs up validation, htmlspecialchars is good!).

Yeah Matt that seems to be the only way to do it. Will look into it.

Both RSS feeds may not be perfect for a while, need to place around with them.
· Matthom guest
Yes, I should have used the proper entity... My bad. I figured Dale would have a script to check for tags, and automatically convert them to their appropriate character encoding.

Much like the <p> tag....
· Matthom guest
Hmmm, my encoding didn't work properly. I used the straight ASCII encoding. Let's see if this one works:

<p>
· dale guest
Yep I do checking, although I left it off on the RSS feed when I changed it. Everything is working now. Type normal stuff ;)

// leave a comment

> click for comments help

HTML allowed: <a href="" title="" rel=""></a> <b></b> <blockquote cite=""></blockquote> <em></em> <i></i> <strike></strike> <strong></strong> <li></li> <ol></ol> <ul></ul>
ie: <b>bold</b>

Your comment may need to be reviewed before it is published.