Data is a string representing youtube embedded code and is read from my database. An example of such string is:
<iframe width="425" height="349" src="http://www.youtube.com/embed/Ki5GNq_3qT8" frameborder="0" allowfullscreen></iframe>
In my controller code I have something like below:
// the parameter embed contains the youtube code
public ActionResult Index(string embed)
{
ViewBag.Embed = embed;
return View();
}
My question is how do I write the Razor code that will inject the embedded HTML code into my view?