BetterCMS.Module.LuceneSearch.Services.IndexerService.DefaultIndexerService.GetTitle C# (CSharp) 메소드

GetTitle() 개인적인 정적인 메소드

private static GetTitle ( HtmlAgilityPack.HtmlDocument html ) : string
html HtmlAgilityPack.HtmlDocument
리턴 string
        private static string GetTitle(HtmlDocument html)
        {
            var titleText = string.Empty;
            var title = html.DocumentNode.SelectSingleNode("//title");

            if (title != null)
            {
                titleText = title.InnerText;
                if (!string.IsNullOrWhiteSpace(titleText))
                {
                    titleText = HttpUtility.HtmlDecode(titleText);
                }
            }

            return titleText;
        }