title: Disable HTML encoding of attribute values in TagBuilder
body: <p>I'm using MVC and I've created a HtmlHelper extension function ImageLink. This function uses two TagBuilder objects to build an HTML image link (like <code>&lt;a&gt;&lt;img/&gt;&lt;/a&gt;</code>).</p>
  
  <p>It works fine, but now I have a page on which the action for the image button should first be confirmed. So, I added an onclick attribute with "javascript: return confirm('confirm me');" as the onclick code. </p>
  
  <p>This renders as: onclick="javascript:return confirm(&#39;confirm me&#39;);"</p>
  
  <p>I though this wouldn't work, but it does. But now when we enter:</p>
  
  <p>"javascript: return confirm('confirm me\r\nnewline');"</p>
  
  <p>this renders as:</p>
  
  <p>onclick="javascript:return confirm(&#39;confirm me
  newline&#39;);"</p>
  
  <p>which doesn't work.</p>
  
  <p>I'd prefer for the TagBuilder not to encode anything at all and just let me take care of it. But since it does, I'm now looking for a way to get this working properly.</p>