I am using MVC3 Razor for developing a web application.Am new to MVC3.
I just want to render a dynamic string which contains some html tags into a view as html.
How can I achieve this? if anybody knows please share..
I am using MVC3 Razor for developing a web application.Am new to MVC3.
I just want to render a dynamic string which contains some html tags into a view as html.
How can I achieve this? if anybody knows please share..
You can use the HtmlHelper.Raw method.
string myDynamicContent = "<b>This is bold</b>";
@Html.Raw(myDynamicContent)