title: ASP.NET: single and double quotes inside the text property of a Literal
body: <p>Simple question, I know, but I can't seem to find a way to put both single and double quotes into the string of the text property of a Literal in asp.net</p>
  
  <pre><code>&lt;asp:Literal runat="server" id="Literal1" Text="This is my "text", isn't it pretty" /&gt;
  </code></pre>
  
  <p>For example, in the above code snippet.  The string closes on the first double-quote around 'text'.  I know I could replace them with single quotes (or use all double quotes and wrap the string in single quotes), but I'm not sure how to use both.  Escaping the quotes doesn't seem to work.</p>
  
  <p>Setting the string on the code-behind is an option, of course, where I can escape the double quotes, but I've always thought it best to keep static text on the aspx, rather than cluttering the code-behind.</p>