title: How do I properly escape quotes inside HTML attributes?
body: <p>I have a drop down on a web page which is breaking when the value string contains a quote.</p>
  
  <p>The value is <code>"asd</code>, but in the DOM it always appears as an empty string.</p>
  
  <p>I have tried every way I know to escape the string properly, but to no avail.</p>
  
  <pre><code>&lt;option value=""asd"&gt;test&lt;/option&gt;
  &lt;option value="\"asd"&gt;test&lt;/option&gt;
  &lt;option value="&amp;quot;asd"&gt;test&lt;/option&gt;
  &lt;option value="&amp;#34;asd"&gt;test&lt;/option&gt;
  </code></pre>
  
  <p>How do I render this on the page so the postback message contains the correct value?</p>