@if (Model.Property != null)
{
<text>
<div class="row">
</text>
Html.RenderPartial("~/Views/CustomView.cshtml", Model);
<text> (line throwing error)
</div>
</text>
}
Error: "The "text" element was not closed. All elements must be either self-closing or have a matching end tag."
I struggle to understand why second set of <text>
tags is returning that error. Any help to understand it would be appreciated.