Html.Encode seems to simply call HttpUtility.HtmlEncode to replace a few html specific characters with their escape sequences.
Html.Encode
HttpUtility.HtmlEncode
However this
/// /// Returns html string with new lines as br tags /// public static MvcHtmlString ConvertNewLinesToBr(this HtmlHelper html, string text) { return new MvcHtmlString(html.Encode(text).Replace(Environment.NewLine, "")); }