I am working on asp.net MVC 5, I created a helper for boolean.
I wrote this:
public class CustomHelper
{
public static string Boolean(bool? value)
{
if(value == true )
return string.Format("<span class='glyphicon glyphicon-ok green'></span>");
else
return string.Format("<span class='glyphicon glyphicon-remove red'></span>");
}
}
and the Razor is:
<td>
@CustomHelper.Boolean(item.Deleted)
</td>
but the result is the same as the photo. the html appears as a string

how to fix it? so I can show the symbol instead? thank you