title: How to display an apostrophe in HTML for viewmodel string property
body: <p>My <a href="/questions/tagged/asp.net" class="post-tag" title="show questions tagged &#39;asp.net&#39;" rel="tag">asp.net</a> view displays a client's name at the top of every page using a layout template. This works fine except when the name property is assigned a value that contains an apostrophe. The view displays the ascii code for the apostrophe instead of an actual apostrophe. For example:</p>
  
  <p>if the client's name is set to "Client's Name", the view renders the name as <code>"Client&amp;#39;s Name"</code> instead of "Client's Name"</p>
  
  <p>Layout Template code:</p>
  
  <pre><code>    @helper ClientName()
      {
          if (Session["CurrentClient"] != null)
          {                                
              @(((ClientModel)Session["CurrentClient"]).Name);
          }
          else
          {
              @String.Format("{0}", "None");
          }
      }
  
      @Html.ActionLink("Client[" + @ClientName().ToString() + "]", "Index", "Home", null, new { @class = "navbar-brand" })
  </code></pre>
  
  <p>What do I do to convert the string value to HTML so the apostrophe is shown?</p>