title: Imperfect HTML-encoding in ASP.NET MVC?
body: <p>I'm using the asp mvc 3. When I build my views using the default html-helpers there is a problem with html-encoding in tag-attributes: The "greater-than"-sign isn't encoded.</p>
  
  <p>So this code</p>
  
  <pre><code>&lt;%: Html.TextBox("TestText", "&lt;Test&gt;") %&gt;
  </code></pre>
  
  <p>produces this output</p>
  
  <pre><code>&lt;input id="TestText" name="TestText" type="text" value="&amp;lt;Test&gt;" /&gt;
  </code></pre>
  
  <p>Is there any reason why the value-attribute isn't full encoded or is this a bug?
  Or is there any way how to use a full encoding even in tag-attributes?</p>
  
  <p>Thanx,
  Michael</p>