SyndicationFeed: Content als CDATA?

Ich mit .NET SyndicationFeed zur Erstellung von RSS-und ATOM-feeds. Leider brauche ich HTML-Inhalte in das description-element (die Content-Eigenschaft des SyndicationItem) und das Formatierungsprogramm automatisch codiert, die HTML, aber ich hätte lieber die ganze Beschreibung element verpackt in CDATA-ohne Codierung des HTML-Codes.

Meine (einfachen) code:

var feed = new SyndicationFeed("Title", "Description", 
               new Uri("http://someuri.com"));
var items = new List<SyndicationItem>();

var item = new SyndicationItem("Item Title", (string)null, 
               new Uri("http://someitemuri.com"));

item.Content = SyndicationContent.CreateHtmlContent("<b>Item Content</b>");

items.Add(item);
feed.Items = items;

Jemand eine Idee, wie ich können dies tun, indem SyndicationFeed? Mein letzter Ausweg ist, um "manuell" erstellen, die für XML-feeds, aber ich würde lieber die built-in SyndicationFeed.

Schreibe einen Kommentar