title: ASP.NET Razor tag helper inside text string
body: <p>In my razor page view I'm populating a model to pass to a partial, like this:</p>
  
  <p><strong>Razor Page</strong></p>
  
  <pre><code>@{
      if (Model.Success)
      {
          Model.AlertMessage = new AlertMessage()
          {
              Title = "Email Confirmed",
              Description = "Your email has been confirmed, you can now &lt;a href=\"/login\"&gt;login&lt;/a&gt; to your account."
          };
      }
      else
      {
          Model.AlertMessage = new AlertMessage()
          {
              Title = "Confirmation Failed",
              Description = "Your email could not be confirmed, please &lt;a href=\"/confirmemail\"&gt;try again&lt;/a&gt;."
          };
      }
  }
  
  &lt;div class="row"&gt;
  &lt;div class="col-md-8 offset-md-2"&gt;
      &lt;partial name="_Partials/Alerts/_AlertMessage", model="Model.AlertMessage"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>Partial View</strong></p>
  
  <pre><code>@model AlertMessage
  
  &lt;div class="alert"&gt;
  &lt;div class="row"&gt;
      &lt;div class="col-auto align-self-center alert-icon"&gt;
      &lt;/div&gt;
      &lt;div class="col"&gt;
          &lt;span class="alert-title"&gt;@Model.Title&lt;/span&gt;
          &lt;p class="alert-content"&gt;@Html.Raw(@Model.Description)&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p> </p>
  
  <p>The above is working, but I'm wondering if it is possible to use a razor tag helper inside the text string? To somehow replace the hard coded anchor tag <code>&lt;a href=\"/login\"&gt;login&lt;/a&gt;</code> with a tag helper <code>&lt;a asp-page="/Login"&gt;</code> and have it render the HTML properly?</p>