title: Writing CDATA in ASP.NET WebApi
body: <p>Im using the setting:</p>
  
  <pre><code>formatters.XmlFormatter.UseXmlSerializer = true;
  </code></pre>
  
  <p>The class i try to serailize is quite simple:</p>
  
  <pre><code>public class MyClass
  {
      public MyClass()
      {
          CDATA = "&lt;![CDATA[&lt;link&gt;MyLink&lt;/link&gt;]]&gt;"
  
      [XmlText]
      public string CDATA { get; set; }
  }
  </code></pre>
  
  <p>I want this to be serialized into something like: </p>
  
  <pre><code>&lt;MyClass&gt;
       &lt;![CDATA[&lt;link&gt;MyLink&lt;/link&gt;]]&gt;
  &lt;/MyClass&gt;
  </code></pre>
  
  <p>But instead get: </p>
  
  <pre><code>&lt;MyClass&gt;
       &amp;lt;![CDATA[&amp;lt;!link&amp;gt;MyLink&amp;lt;!/link&amp;gt;]]&gt;
  &lt;/MyClass&gt;
  </code></pre>
  
  <p>So how can i prevent this? Or is there a better way using the ASP.NET WebApi?</p>