Daniel15.Data.Entities.Blog.PostModel.PlainTextIntro C# (CSharp) Method

PlainTextIntro() public method

Gets the plain text blog post introduction, for the RSS feed
public PlainTextIntro ( ) : string
return string
        public string PlainTextIntro()
        {
            // Remove other HTML tags
            var intro = _htmlTag.Replace(RawContent, string.Empty);

            // Now trim it if needed
            if (intro.Length > SUMMARY_LENGTH)
            {
                intro = intro.Substring(0, SUMMARY_LENGTH) + "...";
            }

            return intro;
        }