title: Razor View and HTML text
body: <p>I am trying to get to grips with Razor, and have hit a basic snag. I generate a small menu based on the users authenticated status. But, I am doing it wrong.</p>
  
  <pre><code>&lt;div&gt;
      &lt;a href="/"&gt;Home&lt;/a&gt;&amp;nbsp;&amp;nbsp; 
      &lt;a href="/"&gt;List&lt;/a&gt;
      @if (Request.IsAuthenticated)
      {
          &amp;nbsp;
          &amp;nbsp;
          &lt;a href="/"&gt;Upload&lt;/a&gt;
          &amp;nbsp;
          &amp;nbsp;
          &lt;a href="/logout" onclick="return confirm('Are you sure you want to delete this image?');"&gt;Logout&lt;/a&gt;
      }
  &lt;/div&gt;
  </code></pre>
  
  <p>It doesn't like the HTML within my {} section. I think it expects an HTML tag... Something like <code>&lt;div&gt;</code>, but because I am using <code>&amp;nbsp</code>, it's not happy. How do I do this?</p>
  
  <p>Additionally, I am trying to handle an image tag. But this is failing dismally.</p>
  
  <pre><code>@using GalleryPresentation.Models
  @model IndexModel
  @{
      ViewBag.Title = "Craig and Melanie's Digital Moments";
  }
  
  &lt;br/&gt;
  &lt;div style="text-align: center"&gt;
      &lt;img src="@Html.Raw(m =&gt; m.RandomImageUrl) /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>where my model is simply:</p>
  
  <pre><code>{
      public class IndexModel
      {
          public string RandomImageUrl { get; set; }
      }
  }
  </code></pre>