From 50743623bf2ddcadce8373230194ff935b0aaef8 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Mon, 17 Jun 2024 20:04:05 -0500 Subject: [PATCH] Upgrade EntityFrameworkCore.BootKit. --- src/Infrastructure/BotSharp.Core/BotSharp.Core.csproj | 2 +- .../PlaywrightDriver/PlaywrightWebDriver.LocateElement.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/BotSharp.Core.csproj b/src/Infrastructure/BotSharp.Core/BotSharp.Core.csproj index 2c06fa80..1ca8b943 100644 --- a/src/Infrastructure/BotSharp.Core/BotSharp.Core.csproj +++ b/src/Infrastructure/BotSharp.Core/BotSharp.Core.csproj @@ -160,7 +160,7 @@ - + diff --git a/src/Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver/PlaywrightWebDriver.LocateElement.cs b/src/Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver/PlaywrightWebDriver.LocateElement.cs index c5f7d48c..bb7f0fa2 100644 --- a/src/Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver/PlaywrightWebDriver.LocateElement.cs +++ b/src/Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver/PlaywrightWebDriver.LocateElement.cs @@ -1,4 +1,4 @@ -using System.Xml.Linq; +using System.Web; namespace BotSharp.Plugin.WebDriver.Drivers.PlaywrightDriver; @@ -88,7 +88,8 @@ public partial class PlaywrightWebDriver }*/ var html = await locator.InnerHTMLAsync(); - result.Body = html; + // fix if html has & + result.Body = HttpUtility.HtmlDecode(html); result.IsSuccess = true; } else if (count > 1)