I have a model with a Property "Price" which has the DisplayAttribute
[Display(Name = "Price (in €)")]
Now i want to display this in a table header using
@Html.DisplayNameFor(model => model.Price)
But when the column is very small, the Text might be broken into two Lines:
Price (in
€)
But i want it to break this way:
Price
(in €)
Is it possible to insert a non breaking space into the Display attribute?
Using "Price (in €)
" results in the "
" printed as Text.