OK, quite new to ASP.Net MVC, so I\'m sorry if this is a silly question, but how do I go about showing the values of a ViewBag as HTML. For Example, if ViewBag.SomeMessage conta
put data to ViewBag as a HTML-encoded string that should not be encoded again.
ViewBag.myBag = MvcHtmlString.Create(myCode ?? string.Empty);
then use
@ViewBag.myBag
The documentation for MvcHtmlString.