I want to pass raw html into a @helper macro... is this possible? For instance:
@helper oneColumn(string content) {
<div class="row">
<div class="twelve columns">
@content
</div>
</div>
}
@put.oneColumn(
<h1 id="page-heading">HELLO WORLD!</h1>
)
@helper oneColumn(Func<dynamic,HelperResult> content) {
<div class="row">
<div class="twelve columns">
@content(null)
</div>
</div>
}
@put.oneColumn( @<h1 id="page-heading">HELLO WORLD!</h1>)
Use the @Html.Raw
HTML helper, or make content an IHtmlString
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With