RazorMail.Parsers.HtmlAgilityPackParser.AppendTableDividers C# (CSharp) Méthode

AppendTableDividers() protected méthode

protected AppendTableDividers ( HtmlNode root ) : void
root HtmlAgilityPack.HtmlNode
Résultat void
        protected void AppendTableDividers(HtmlNode root)
        {
            root.SelectNodes("//td[position()<last()]|//th[position()<last()]").ForEach(x => x.AppendChild(HtmlTextNode.CreateNode(x.InnerText.Trim(' ').EndsWith(":") ? " " : ", ")));
            root.SelectNodes("//td[last()]|//th[last()]").ForEach(x => x.AppendChild(HtmlNode.CreateNode("<br />")));
        }