我得到“跨越文本”这个代码,但我想得到链接href(不是链接文本)。请帮帮我。
Dim html As String = "<span class=myclass><a href=abc.html>text text a text</a></span>"
Dim doc = New HtmlAgilityPack.HtmlDocument()
doc.LoadHtml(html)
Dim titles As HtmlAgilityPack.HtmlNodeCollection = doc.DocumentNode.SelectNodes("//span[@class='myclass']")
For Each title In titles
MsgBox(title.InnerText)
Next