I am adding some simple tags to my SyndicationItem Content object like
"<p>Hello World</p>"
but it is shown in the RSS feed as
"<p>Hello World</p>"
I have tried to different ways to avoid this, but none works.
I am adding some simple tags to my SyndicationItem Content object like
"<p>Hello World</p>"
but it is shown in the RSS feed as
"<p>Hello World</p>"
I have tried to different ways to avoid this, but none works.
I have seen a number of solutions offered that work with old versions of .net here :
SyndicationFeed: Content as CDATA?
As well as a post processing solution here :
https://gist.github.com/davidwhitney/1027181
The first solution was not viable for me since we are using the latest version of .net, and the second looked like a lot of overhead for something so simple, so I ended up implementing this solution :
And then to use the class :
Using in a controller: