If you generate an HTML string Like
ViewBag.FinalHTML="<a href=\"http://stackoverflow.com\">StackOverFlow</a>";
and then Try to show it in View using this code:
This is the best Q&A for programming questions: @ViewBag.FinalHTML
then the result will be this:
This is the best Q&A for programming questions: <a href="http://stackoverflow.com">StackOverFlow</a>
(I know how can I do that right. I have another question!)
How does ASP.Net MVC do it?