title: Razor code between double quotes
body: <p>In a Razor View Engine template, I want to do the following: I want to put some <em>code</em> between the double quotes of an html <em>attribute</em>.  The trouble is that the piece of code I want to insert contains some double quotes itself.</p>
  
  <pre><code>&lt;a href="Url.Action("Item", new { id = Model.Item.Id, page = page });"&gt;@page&lt;/a&gt;
  </code></pre>
  
  <p>You can easily see how things turn horribly wrong :-)  I know i can calculate the link in a variable and then use it, but I'd rather not:</p>
  
  <pre><code>@{ var action = Url.Action("Question", new { id = Model.Question.Id, page = page }); }                   
  &lt;a href="@action"&gt;@page&lt;/a&gt;                                        
  </code></pre>