Page 1 of 1
Need to add a piece of html to a feed ...
Posted: Thu Jun 03, 2010 3:35 pm
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
Re: Need to add a piece of html to a feed ...
Posted: Thu Jun 03, 2010 7:42 pm
by Don Chambers
I don't think HTML is allowed in an XML feed. What do you need to add?
Re: Need to add a piece of html to a feed ...
Posted: Thu Jun 03, 2010 9:54 pm
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
Re: Need to add a piece of html to a feed ...
Posted: Thu Jun 03, 2010 10:37 pm
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.