Maintain whitespace when displaying text from database
问题 I'm putting up a table that displays values from a table. One of the fields comes from a textarea input. If I use this method then whitespace is maintained: @Html.TextAreaFor(model => model.goalDescr, new { cols="90", rows="3", @readonly = "true"}) --example: hey there --end example However, I don't like that view so much as it still looks like a form field. I tried to use displayfor but the white space is removed and all text is one one line. @Html.DisplayFor(model => model.goalDescr) -