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)