diff --git a/plist-cil.test/NSStringTests.cs b/plist-cil.test/NSStringTests.cs
new file mode 100644
index 0000000..380728d
--- /dev/null
+++ b/plist-cil.test/NSStringTests.cs
@@ -0,0 +1,29 @@
+using Claunia.PropertyList;
+using Xunit;
+
+namespace plistcil.test
+{
+ public class NSStringTests
+ {
+ const string START_TOKEN = "";
+ const string END_TOKEN = "";
+
+ [InlineData("abc", "abc")]
+ [InlineData("a>b", "a>b")]
+ [InlineData("a character should be escaped.
- if(Content.Contains("&") ||
- Content.Contains("<") ||
- Content.Contains(">"))
- {
- xml.Append("", "]]]]>"));
- xml.Append("]]>");
- }
- else
- xml.Append(Content);
+ xml.Append(SecurityElement.Escape(Content));
xml.Append("");
}