How can I show a viewbag as html?
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 contains the following text: <h3>Test</h3><p>Test</p><p>Test</p><p>Test</p><p>Test</p><p>TEST</p> How would I go about actually having the page render that as normal HTML? Or is there a much easier way of achieving this that I'm totally missing? Cheers! Everyone is correct in the use of @Html.Raw() but I want to point out to be careful with this, as it can make your site susceptible to XSS vulnerabilities. I would combine the