[OGo-Developer] Note text mangled in RSS

Helge Hess developer@opengroupware.org
Mon, 4 Dec 2006 18:22:12 +0100


On Dec 4, 2006, at 17:53, Adam Tauno Williams wrote:
> It appears that the note is placed into the RSS feed by  
> appendRSSItem in
> ZideStore/SoObjects/ZSProjects/SxProjectNotesRSS.m -
> ...
>   [_r appendContentString:@"        <description>"];
>   [_r appendContentXMLString:[_note valueForKey:@"noteContent"]];
>   [_r appendContentString:@"</description>\n"];
> ...
>
> It seems like new lines in the noteContent (which is straight text)
> should be converted to "<BR/>".

Possibly. That would be

   [_r appendContentXMLString:
     [[_note valueForKey:@"noteContent"]
             stringByReplacingString:@"\n" withString:@"<BR/>"]];

But I'm not entirely sure what is allowed in the <description> tag?  
Should that be (XML escaped) HTML?

Greets,
   Helge
-- 
Helge Hess
http://docs.opengroupware.org/Members/helge/