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