I'm automating a feed that contains updates on my web site, and the way it is set up it uses html code that is embedded in some of the items take from my website. (like simple tags -- paragraphs.
When it gets parsed it spits out errors or stops at the first illegal tag, suggesting to me such things aren't allowed. Is there a way to have tags embedded (since I can't remove them) and have things work?
Msg#: 3752044 posted 11:20 am on Dec 13, 2008 (gmt 0)
I have the same question. From what I can gather, HTML tags aren't allowed inside the <description></description> tags. If I'm delivering a long article via RSS, I'd like to use <p> tags to break up the content, and I see that some news feeds do the same thing, and RSS readers seem to understand that. But the feed won't pass validation if I use <p> tags.
Similarly, I'd like to link to other content from my articles with <a href> tags, but that also kills validation. I think my options are:
(1) Don't use any tags, and have annoying long articles without breaks or links. (2) Use <p> and <a> tags, and don't be concerned that the feed doesn't validate.
Msg#: 3752044 posted 2:38 pm on Dec 16, 2008 (gmt 0)
I'm sorry, I misunderstood. I thought you were saying to use encoding if I want the user to be able to see the tags, if, for example, I'm writing an article about HTML. I tried encoding the tags and they work great, thanks.
But this begs the question: What if I *do* want the user to see the tags. On an HTML page < will show the user a < sign. How do I show the < and > signs in an RSS feed?
Msg#: 3752044 posted 2:14 am on Dec 17, 2008 (gmt 0)
Well, in my test the characters didn't show up. I included the string "<manchu>" in a description but it didn't. show up. Perhaps naked < and > characters will show up if they don't look like tags, but if everything that looks like a tag tries to get parsed as such, I think that means that I can't have an article about HTML tags, because there's no way to display things like <p> to the user. Is that right?