OF-DL/OF DL/Utils/XmlUtils.cs
2025-05-03 00:17:19 +01:00

26 lines
527 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace OF_DL.Utils
{
internal static class XmlUtils
{
public static string EvaluateInnerText(string xmlValue)
{
try
{
var parsedText = XElement.Parse($"<root>{xmlValue}</root>");
return parsedText.Value;
}
catch
{ }
return string.Empty;
}
}
}