MVC Razor - Outputting text in-position to the screen

Viewed 18262

I create a String in a view and want to output it to the screen.

Initially I tried Response.Write but, due to reasons explained elsewhere on this site, the content appeared at the top of the page. I then attempted to output the string using @ like so: @myString.

This worked, in that it output the text at the right location but it escaped HTML links that I had put in there. How do I get around this problem?

5 Answers
Related