Line Breaks in an RSS Fead

Discussion in 'Web Design and Development' started by iTim314, Jul 31, 2007.

  1. iTim314 macrumors 6502

    Joined:
    Jun 5, 2005
    Location:
    U.S.
    #1
    This sounds so dumb....

    How do you insert a line break in a simple RSS XML document? :rolleyes::confused:

    Neither <br /> or \n\r or \n or \r or \r\n work.

    <br /> just doesn't show up at all, and the other show up... literally.
     
  2. Winterfell macrumors regular

    Joined:
    Apr 3, 2007
    Location:
    Tulsa, Oklahoma
    #2
    AFAIK, it depends on the RSS reader that you're using. A lot of them normalize line breaks to \n.

    What RSS reader are you using?
     
  3. yagran macrumors 6502a

    Joined:
    Jan 8, 2007
    Location:
    Brighton, East Sussex, UK
    #3
    aye.

    the rss document itself should not contain line breaks, but the code that reads the rss document should insert them itself as it scans the items in your rss file.
     

Share This Page