C# Class SimpleFeedReader.DefaultFeedItemNormalizer

The DefaultFeedItemNormalizer normalizes FeedItem.Title, FeedItem.Content and FeedItem.Summary of FeedItems to the point where they no longer contain any HTML, redundant whitespace, un-normalized unicode chars and other control chars like tabs, newlines or backspaces. The FeedItem's FeedItem.Date property will contain whichever date is latest; the FeedItem.PublishDate or FeedItem.LastUpdatedDate.
You can implement a normalizer yourself by implementing the IFeedItemNormalizer interface.
Inheritance: IFeedItemNormalizer
ファイルを表示 Open project: RobThree/SimpleFeedReader

Public Methods

Method Description
Normalize ( System.ServiceModel.Syndication.SyndicationFeed feed, System.ServiceModel.Syndication.SyndicationItem item ) : FeedItem

Normalizes a SyndicationItem into a FeedItem.

Private Methods

Method Description
GetFeedItemImages ( System.ServiceModel.Syndication.SyndicationItem item ) : IEnumerable
HtmlDecode ( string value, int threshold = 5 ) : string
Normalize ( string value ) : string
RemoveControlChars ( string value ) : string
StripDoubleOrMoreWhiteSpace ( string value ) : string
StripHTML ( string value ) : string

Method Details

Normalize() public method

Normalizes a SyndicationItem into a FeedItem.
public Normalize ( System.ServiceModel.Syndication.SyndicationFeed feed, System.ServiceModel.Syndication.SyndicationItem item ) : FeedItem
feed System.ServiceModel.Syndication.SyndicationFeed The on which the item was retrieved.
item System.ServiceModel.Syndication.SyndicationItem A to normalize into a .
return FeedItem