diff --git a/src/Core/src/Platform/Android/TextViewExtensions.cs b/src/Core/src/Platform/Android/TextViewExtensions.cs index 2b0832625fcf..95a34d72494d 100644 --- a/src/Core/src/Platform/Android/TextViewExtensions.cs +++ b/src/Core/src/Platform/Android/TextViewExtensions.cs @@ -1,5 +1,5 @@ using System; -using System.Web; +using System.Net; using Android.Graphics; using Android.Text; using Android.Widget; @@ -19,7 +19,7 @@ public static void UpdateTextPlainText(this TextView textView, IText label) public static void UpdateTextHtml(this TextView textView, ILabel label) { var text = label.Text ?? string.Empty; - var htmlText = HttpUtility.HtmlDecode(text); + var htmlText = WebUtility.HtmlDecode(text); if (OperatingSystem.IsAndroidVersionAtLeast(24)) textView.SetText(Html.FromHtml(htmlText, FromHtmlOptions.ModeCompact), BufferType.Spannable);