<a href="https://google.com" class="link" ></a>
<a href="https://google.com" class="link" >Text Node</a>
@using (Html.Glass().BeginRenderLink(m => m.Link, new { @class = "link" }, true))
{
}
@Html.Glass().RenderLink(m => m.Link, new { @class = "link" }, true)
I can't understand this odd behavior, using BeginRenderLink
renders the first anchor link without a text node, but using RenderLink
renders the same anchor link but with a text node. Is there something I'm missing here? The end goal is to be able to wrap some HTML inside the using statement but I am stuck on this little problem.