title: Problems using a StringBuilder to construct HTML in C#
body: <p>I have this line of code that forms an html string:</p>
  
  <pre><code>StringBuilder builder = new StringBuilder();
  builder.Append("&lt;a href='#' onclick=");
  builder.Append((char)22); //builder.Append('\"');
  builder.Append("diagnosisSelected('" + obj.Id + "', '" +obj.Name + "')");
  builder.Append((char)22);
  builder.Append(" &gt;" +  obj.Name + "&lt;/a&gt;");
  </code></pre>
  
  <p>In the browser I get </p>
  
  <pre><code>&lt;a href='#' onclick=\"diagnosisSelected('id', 'text')\" &gt;some text here&lt;/a&gt;
  </code></pre>
  
  <p>and I get an error because of \". How can I output a "?</p>