Why do I get this error?
"Illegal characters in path" at
pageSource is a string variable of the HTML page. I need to pass the page source as a string, not as a file and not as a URL. How do I do this?
Dim ids As New List(Of String)() Dim pageSource = getHtml(url) Dim htmlDoc As HtmlDocument = New HtmlDocument() htmlDoc.OptionFixNestedTags = True htmlDoc.Load(pageSource) Dim s As HtmlNodeCollection = htmlDoc.DocumentNode.SelectNodes("//div/@id") For Each div As HtmlNode In s ids.Add(div.Id) Next