Modern equivalent of the V7 HtmlHelper.Wrap extens...
# help-with-umbraco
l
Anyone know the best alternative to Html.Wrap when porting V7 to modern?
j
Yes, turns out that HTML had a native way to wrap things in tags all along. It has intellisense, will get checked at compile time, and Razor will automatically cache it in memory. 🤯
Copy code
<div> <!-- tag you want to wrap with -->
  <!-- Thing you want to wrap goes here -->
</div>
😜 šŸ˜‡
l
Ahem, you know darn well why I need this extension to stay as-is, don't you, you .... 🤣🤯
6 Views