# C1.Web.Mvc.Fluent.IHtmlStringExtension

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_IHtmlStringExtension" data-uid="C1.Web.Mvc.Fluent.IHtmlStringExtension" class="text-break">IHtmlStringExtension Class
</h1>
  <div class="markdown level0 summary"><p>Define a static class to add the extension methods for <span class="xref">System.Web.IHtmlString</span></p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">IHtmlStringExtension</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Fluent.html">C1.Web.Mvc.Fluent</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_Fluent_IHtmlStringExtension_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class IHtmlStringExtension</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module IHtmlStringExtension</code></pre>
  </div>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_Fluent_IHtmlStringExtension_ToTemplate_Microsoft_AspNetCore_Html_HtmlString_" data-uid="C1.Web.Mvc.Fluent.IHtmlStringExtension.ToTemplate(Microsoft.AspNetCore.Html.HtmlString)">
          <a class="xref" href="C1.Web.Mvc.Fluent.IHtmlStringExtension.ToTemplate.html#C1_Web_Mvc_Fluent_IHtmlStringExtension_ToTemplate_Microsoft_AspNetCore_Html_HtmlString_">ToTemplate(HtmlString)</a>
        </td>
        <td class="markdown level1 summary"><p>Render the html string in template mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_IHtmlStringExtension_ToTemplate_Microsoft_AspNetCore_Html_IHtmlContent_" data-uid="C1.Web.Mvc.Fluent.IHtmlStringExtension.ToTemplate(Microsoft.AspNetCore.Html.IHtmlContent)">
          <a class="xref" href="C1.Web.Mvc.Fluent.IHtmlStringExtension.ToTemplate.html#C1_Web_Mvc_Fluent_IHtmlStringExtension_ToTemplate_Microsoft_AspNetCore_Html_IHtmlContent_">ToTemplate(IHtmlContent)</a>
        </td>
        <td class="markdown level1 summary"><p>Render the HelperResult in template mode.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
