I have created a html helper method like this
public static class abcExtensions
{
public static string Label1(this HtmlHelper helper, string target, string text)
{
return String.Format("<label for='{0}'>{1}</label>", target, text);
}
}
But wne I use it like
@Html.Label1(..)
it render encoded text like this
<label for='aa'>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq</label>
I dont want to use @Html.Raw
How can I render Html instead of encoded text?