Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 450

New Post: Agility Pack Usage for Getting Content Between html tags

$
0
0
publicstring getContent(string webAddress){HtmlAgilityPack.HtmlWeb web =newHtmlAgilityPack.HtmlWeb();HtmlDocument doc = web.Load(webAddress);returnstring.Join(" ", doc.DocumentNode.Descendants().Select(x => x.InnerText));}

am using this function to extract content between html tags however  visual studio is showing exception on the line of return! Problem might be in decendant() function! says not found in context! help plz! 

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>