Skip to content

Commit

Permalink
wrap all content properties in CDATA #59
Browse files Browse the repository at this point in the history
Wrapping in CDATA section should improve consistancy and preserve whitespace better.
  • Loading branch information
Kevin Jump committed Oct 14, 2019
1 parent 541a5fc commit ed83449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uSync8.ContentEdition/Serializers/ContentSerializerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected virtual XElement SerializeProperties(TObject item)
valueNode.Add(new XAttribute("Segment", value.Segment ?? string.Empty));
}

valueNode.Value = GetExportValue(value.EditedValue, property.PropertyType, value.Culture, value.Segment);
valueNode.Add(new XCData(GetExportValue(value.EditedValue, property.PropertyType, value.Culture, value.Segment)));
// valueNode.Value = value.EditedValue?.ToString() ?? string.Empty;
propertyNode.Add(valueNode);
}
Expand Down

0 comments on commit ed83449

Please sign in to comment.