title: ASP.NET 4.0 DropDownList with single quotes in text
body: <p>We have a asp:DropDownList that we populate server side with</p>
  
  <pre><code>ddlBranch.Items.Add(new ListItem("TEST","This is a's test"));
  </code></pre>
  
  <p>When this is compiled and run under .NET 3.5 we see the text "This is a's test"</p>
  
  <p>However when this is compiled and run under .NET 4.0 we see the text "This is a<code>&amp;#39;</code>s test"</p>
  
  <p>We have added the following to our web.config and there was no change.</p>
  
  <pre><code>&lt;pages controlRenderingCompatibilityVersion="3.5" /&gt;
  </code></pre>
  
  <p>For the time being we have dropped back to .NET 3.5 however we would like to know if there is a way to work around this or if this is a known rendering issue or is by design.</p>
  
  <p>TIA</p>
  
  <p>AJ</p>