Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is there a way to get the HTML text for a WebView control in Windows Phone 8.1 like we get the same for WebBrowser control as below:

C#
webBrowser1.DocumentText



Thanks,
Posted
Updated 30-Jan-16 18:08pm
v2

1 solution

You can try HtmlAgilityPack[^]. The HTML then becomes queryable through Linq Like:
C#
HtmlDocument htmlDoc = webBrowser1.Document as HtmlDocument;
string innerText = htmlDoc.DocumentNode.Descendants("body").Single().InnerText;

You can also load the HTML as a string or stream through LoadHtml and Load respectively
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900