I want to prevent the render tag <partial>
using asp.net core helpers. My code is:
<pre>
<code class="language-html">
<partial name="~/Breadcrumbs/BreadcrumbTemplate.cshtml" model="breadcrumbs" />
</code>
</pre>
I need print exactly the same the code, without rendering. Thanks in advance.
Just do something to break up the tag, so it's not interpreted by Razor as a tag to be processed. For example:
<partial name="~/Breadcrumbs/BreadcrumbTemplate.cshtml" model="breadcrumbs" />