Using Razor how/can you write straight text with out wrapping it in some type of html tag?
Example (This works but adds extra span tags):
@{ var foo = tr
If you're trying like I am to inject data into Javascript I found this to work.
@Html.Raw(table)
I was pulling data from a database and injecting it into the code for a Google chart.
So in the OP's case,
@if (foo) { Html.Raw("Yes") } else { Html.Raw("No") }