Does anyone (please) know how to do this? I thought that there would be an easy way to achieve this but can't find anything about saving the contents of WebBrowser HTML.
You might try something like this:
(Assuming C# 4 and WPF 4)
dynamic doc = webBrowser.Document;
var htmlText = doc.documentElement.InnerHtml;
Works for me...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With