How to add line breaks in RSS feeds?

Posted by Candidasa on Stack Overflow See other posts from Stack Overflow or by Candidasa
Published on 2009-08-29T10:38:03Z Indexed on 2010/06/12 9:23 UTC
Read the original article Hit count: 357

Filed under:
|
|
|
|

I'm building my own custom RSS feed in PHP. I want the tag to contain line breaks to make the text more readable. However, I can't seem to figure out how to do it correctly. No matter what I try some RSS reader interprets it incorrectly. Is there some standard best way to add a line-break in and RSS 2.0 feed?

I have tried "\n", which works in NetNewsWire on the Mac, but gets ignored by the built-in Safari browser's RSS reader.

I have tried <br />, which works in the Safari RSS reader, but results in all the text after the
being cut off in NetNewsWire.

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml