I created FromHtmlValueConverter in my PCL based on the answer at How can I bind an HTML string to a webview in an Android app?.
public class FromHtmlValueConverter : MvxValueConverter<string>
{
protected override object Convert(string value, Type targetType, object parameter, CultureInfo culture)
{
return Html.FromHtml(value);
}
}
And I got compile error at Html.FromHtml. I can call Html.FromHtml properly from my .Droid project but I don't know how to call it inside PCL.
Could you please help?
The Html.FromHtml refers to Html class from Android, see here
So the converter should be in the Android app, not in PCL.