Skip to content

Commit

Permalink
Use System.Net.WebUtility.HtmlDecode instead of System.Web.HttpUtilit…
Browse files Browse the repository at this point in the history
…y.HtmlDecode (#19237)

Fixes #19183
  • Loading branch information
Eilon committed Dec 6, 2023
1 parent aeabd1a commit 1f8b824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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;
Expand All @@ -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);
Expand Down

0 comments on commit 1f8b824

Please sign in to comment.