When the following ASP.NET MVC 5 Razor code is used in a view
@(Model.cobrandingLogoList[i].isMine ? " class=\"logo-owner\"" : String.Empty)
The rendered output is
class=""logo-owner""
Edit: added screen capture of the output
The same thing happens if I use
@(Model.cobrandingLogoList[i].isMine ? @" class=""logo-owner""" : String.Empty)
I was expecting this
class="logo-owner"
What should be used to get the desired result?