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
Using the style="white-space:pre-wrap;" worked for me. Per this article.
style="white-space:pre-wrap;"