title: Is it possible to not encode the Label tag value rendered in ASP.NET Core HtmlHelper?
body: <p>I asked a similar question a while back:
  <a href="https://stackoverflow.com/questions/73144236/is-it-possible-to-format-display-attributes-name-property-value-of-mvc-model-cl/73146330#73146330">Is it possible to format Display attribute&#39;s Name property value of MVC Model class?</a></p>
  <p>I am wondering would it be possible to not apply encoding in the ASP.NET Core <code>HtmlHelper.Label</code> tag?</p>
  <p>What I have now is:</p>
  <pre><code>&lt;label asp-for=&quot;CorporationName&quot; class=&quot;control-label&quot;&gt;&lt;/label&gt;
  </code></pre>
  <p>I understand it will render the html .</p>
  <p>Like so:</p>
  <pre><code>&lt;label class=&quot;control-label&quot; for=&quot;CorporationName&quot;&gt;Corporation / &lt;br/&gt;Entreprise&lt;/label&gt;
  </code></pre>
  <p>with the text value defined in this model class:</p>
  <pre><code>[DataType(DataType.Text)]
  [Display(Name = &quot;Corporation / &lt;br/&gt; Enterprise&quot;)]
  public string Corporation { get; set; }
  </code></pre>
  <p>So I am wondering if it is possible to apply something similar to <code>@Html.Raw</code> to the asp-for attribute value in the label tag above so it will show as:</p>
  <pre><code>Corporation /
  Enterprise
  </code></pre>
  <p>Or I need to write my own label class so it will do the encoding?</p>
  <p>Thank you.</p>