I have a textarea in mvc. When data is entered into that and I\'m displaying it back to the user, how do I show the line breaks?
textarea
I display like this:
Try something like this:
<%= Regex.Replace( Html.Encode(Model.Description), Environment.NewLine, "", RegexOptions.IgnoreCase||RegexOptions.Multiline ) %>