Jeff Reed
Jeff Reed

Reputation: 231

Converting HTML to string with HtmlAgilityPack

I've parsed a string with HTML to a HtmlAgilityPack.HtmlDocument, but I can't seem to convert it back to a string.

    Dim Document As HtmlAgilityPack.HtmlDocument = New HtmlAgilityPack.HtmlDocument()
    Document.LoadHtml(Result)

Upvotes: 2

Views: 1393

Answers (1)

Luan Castro
Luan Castro

Reputation: 1184

you can use the InnerHTML

Dim html As String
html = Document.DocumentNode.InnerHTML 

Upvotes: 3

Related Questions