how do i add <br> in rss item description? I have manually tried adding <br> in an rss feed description and it does not read correctly, it expects me to close the <br> tag for some reason. How can I break line in an rss feed? Thanks
<br /> XHTML is html reformulated as xml. XML requires that all tags be closed. Some tags in html are empty, that is they are replaced by whatever they're tagging. For example the <img> is replaced by the actual image, <br> is replaced by a line-feed, and <hr> is replaced by a horizontal line. These tags have no closing tag in html. From another post
thanks for the tip.. im actually converting xml datafeeds like yahoo api into rss feeds to link up with wordpress & feedwordpress
Actually ran into this problem before — but the explanation is not mine, it belongs to the post I linked to.
Actually, this goes a little further than just HTML/XHTML issue. The thing is that RSS titles, descriptions, items, channels, etc. must be properly XML-formatted, which means no HTML tags. No breaks, no bolds, no italics... Nothing but an old plain text. I ran into this problem while developing www.feedest.com - lots of people don't comply with XML requirements. They attempt to inject just about anything into RSS/Atom titles and descriptions - colors, fonts, even images and inline stylesheets. This poses a few problems to the feed readers. Including messing up the layouts. So most self-respecting readers/aggregators (including feedest.com ) will strip XML titles/descriptions of anything that resembles HTML tag before adding to a database or on the runtime, so even if you have something like <MyBlogRules> (which technically is not an HTML tag), it will fall victim to this clean-up process. I hope this helps a bit.