SyndicationFeed: Content as CDATA?

前端 未结 9 2069
梦毁少年i
梦毁少年i 2021-01-13 16:17

I\'m using .NET\'s SyndicationFeed to create RSS and ATOM feeds. Unfortunately, I need HTML content in the description element (the Content property of the SyndicationItem)

9条回答
  •  生来不讨喜
    2021-01-13 16:35

    This should work.

    item.Content =  new TextSyndicationContent("Item Content",TextSyndicationContentKind.Html);
    

提交回复
热议问题