From 8fe280975a9dc38778a4f87c011ddfc1f956701c Mon Sep 17 00:00:00 2001 From: OdYodel Date: Thu, 10 Oct 2019 09:07:26 -0400 Subject: [PATCH] allows for explicitly typed xml encoded values to be referenced in xml configs. --- src/MagicChunks/Documents/XmlDocument.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MagicChunks/Documents/XmlDocument.cs b/src/MagicChunks/Documents/XmlDocument.cs index 705d057..d541938 100644 --- a/src/MagicChunks/Documents/XmlDocument.cs +++ b/src/MagicChunks/Documents/XmlDocument.cs @@ -184,7 +184,7 @@ private static void UpdateTargetElement(string value, string targetElement, XEle if (targetElement.StartsWith("@") == true) { // Attriubte update - current.SetAttributeValue(targetElement.TrimStart('@').GetNameWithNamespace(current, String.Empty), value.Replace(""", @"""").Replace("<", @"<").Replace(">", @">")); + current.SetAttributeValue(targetElement.TrimStart('@').GetNameWithNamespace(current, String.Empty), value.Replace(""", @"""").Replace("<", @"<").Replace(">", @">").Replace("&quot;", @""").Replace("&lt;", @"<").Replace("&gt;", @">")); } else if (!attributeFilterMatch.Success) { // Property update