I have this line of code that forms an html string:
StringBuilder builder = new StringBuilder();
builder.Append("<a href='#' onclick=");
builder.Append((char)22); //builder.Append('\"');
builder.Append("diagnosisSelected('" + obj.Id + "', '" +obj.Name + "')");
builder.Append((char)22);
builder.Append(" >" + obj.Name + "</a>");
In the browser I get
<a href='#' onclick=\"diagnosisSelected('id', 'text')\" >some text here</a>
and I get an error because of \". How can I output a "?