Just come across this so thought would answer – SLaks looks right with Html.Raw, but the OP is also correct in that the second method doesn’t look to work – the “s get encoded.
My solution was:
<li@(active ? Html.Raw(" class=\"active\"") : null)>
Just come across this so thought would answer – SLaks looks right with Html.Raw, but the OP is also correct in that the second method doesn’t look to work – the “s get encoded.
My solution was:
<li@(active ? Html.Raw(" class=\"active\"") : null)>