Reputation: 11
I am using below code in view:
@Html.Raw(HttpUtility.HtmlDecode(@expertTrckerReportTO.Name))
on output string "&" is coming as "&".
Can any one help ?
Upvotes: 1
Views: 486
Reputation: 2191
Have you tried one of these?
HtmlString:
@(new HtmlString(myString))
MvcHtmlString:
@MvcHtmlString.Create(myString)
Upvotes: 1