Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'entity encoding' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
entity encoding
Authored by: badger brigade on Nov 30, '04 03:21:26PM
You need to replace the left angle bracket that opens the image tag in the script with the appropriate HTML entity, otherwise the image won't display. ie
replace <img with &lt;img


[ Reply to This | # ]
entity encoding
Authored by: badger brigade on Nov 30, '04 03:30:18PM

Unless, of course, you put an ampersand in the title of your new feed, like 'Calvin & Hobbes', in which case the wonders of RSS mean that the feed gets parsed differently and the left angle bracket shouldn't be encoded at all.



[ Reply to This | # ]
entity encoding
Authored by: smorr on Dec 01, '04 02:25:39PM

Yoicks!

I did have the appropriate entity encoding in my original submission but some where along the way, it got converted to a < and a >

So the line in question is the 4th from last and it should read:
print '\t\t\t\t<description>&lt;img src=\"http://images.ucomics.com/comics/%s/%s/%s%s.gif\" border=\"0\" /&gt;</description>' %(comicImgStem,time.strftime("%Y"),comicImgStem,time.strftime("%y%m%d"))



[ Reply to This | # ]