var code = HttpUtility.HtmlDecode(webData);
var htmlSource = new HtmlWebViewSource();
htmlSource.Html = code;
WebViwPage.Source = htmlSource;
Webview is like that.
I want to open this in external browser.
We cannot load the html content in a browser directly, we need to pass the content to the broswer. Such as on Android, try to get the uri as an exernal stroage file to save the html string and then get the uri of the file. You could use Browser.OpenAsync method to open the browser with the uri.
private void Btn_Clicked(object sender, System.EventArgs e)
var uri = DependencyService.Get<IFileUrl>().GetUri();
Xamarin forums are migrating to a new home on Microsoft Q&A!
We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
For more information, please refer to this sticky post.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies