I take user input into a text area, store it and eventually display it back to the user.
In my View (Razor) I want to do something like this...
@Message.
Use HttpUtility.HtmlEncode then do the replace.
@Html.Raw(HttpUtility.HtmlEncode(Message).Replace("\n", ""))