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:
For Asp.net mvc razor,i used Html.Encode for blocking xss attacks
@Html.Raw(Html.Encode(Model.Description).Replace(Environment.NewLine, ""))