C# Класс GalnetMonitor.GalnetFeedItemNormalizer

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.
Наследование: IFeedItemNormalizer
Показать файл Открыть проект

Открытые методы

Метод Описание
Normalize ( System.ServiceModel.Syndication.SyndicationFeed feed, System.ServiceModel.Syndication.SyndicationItem item ) : FeedItem

Normalizes a SyndicationItem into a FeedItem.

Приватные методы

Метод Описание
HtmlDecode ( string value, int threshold = 5 ) : string
Normalize ( string value ) : string
RemoveControlChars ( string value ) : string
StripDoubleOrMoreWhiteSpace ( string value ) : string
StripHTML ( string value ) : string

Описание методов

Normalize() публичный Метод

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 .
Результат SimpleFeedReader.FeedItem