Need to add a piece of html to a feed ...

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Need to add a piece of html to a feed ...

Post by Lux »

Hi,

I need to add a little piece of html to one feed (http://www.deimeke.net/dirk/blog/rss.ph ... enichsachs).

How can I achieve this?

Cheers

Dirk
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Need to add a piece of html to a feed ...

Post by Don Chambers »

I don't think HTML is allowed in an XML feed. What do you need to add?
=Don=
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: Need to add a piece of html to a feed ...

Post by Lux »

Don Chambers wrote:I don't think HTML is allowed in an XML feed. What do you need to add?
A comment containing an authorization code.

Cheers

Dirk
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Need to add a piece of html to a feed ...

Post by Don Chambers »

You will see smarty templates in the default template folder:

feed_0.91.tpl (rss 0.91), feed_1.0.tpl (rss 1.0), etc. You can copy these files to your template folder and modify the copies.

I think your feed will be invalid if you add html to it. Will your validation code work if the html is escaped ie, < becomes <?

Not quite sure how to detect the specific tag. Perhaps Garvin has an answer for that.
=Don=
Post Reply