BetterCMS.Module.LuceneSearch.Services.IndexerService.DefaultIndexerService.GetBody C# (CSharp) Метод

GetBody() приватный статический Метод

private static GetBody ( HtmlAgilityPack.HtmlDocument html ) : string
html HtmlAgilityPack.HtmlDocument
Результат string
        private static string GetBody(HtmlDocument html)
        {
            var contentText = new StringBuilder();
            var content = html.DocumentNode.SelectSingleNode("//body");

            if (content != null)
            {
                CollectChildrenNodesInnerHtml(content.ChildNodes, contentText);
            }

            var body = contentText.ToString();
            body = HttpUtility.HtmlDecode(body);
            return RemoveDuplicateWhitespace(body);
        }