Use .outerHTML
to get the HTML
Here is a code sample to get the entire HTML of the website
private async void GetHTMLAsync()
{
var siteHtML = await webView.InvokeScriptAsync("eval", new string[] { "document.documentElement.outerHTML;" });
}