This statement outputs the the HTML exactly, my intent is for it the be rendered as HTML.
<td>@(part.IsVocal ? "<span class='badge bg-success'>Yes</span>" : "<span class='badge bg-danger'>No</span>") /
@(part.IsInstrumental ? "<span class='badge bg-success'>Yes</span>" : "<span class='badge bg-danger'>No</span>")</td>
It renders in the browser as:
<td>
"<span...."
" / "
"<span...."
</td>
So it's rendering them as strings, rather then code.