Is HTML.raw() specific to MVC? On what scenarios we have to use it?
Can you please explain with an example.
Html.Raw
For Example :
Controller
public actionresult Htmlraw()
{
viewbag.message = "Hey friends lets go" + "
" + "for chillout";
return view();
}
index view
@Html.Raw(ViewBag.message);
output
hey friends lets go
for chillout