How to retain spaces in DropDownList – ASP.net MVC Razor views

nbsp in html corresponds to “\xA0” as a C# string, so use this instead of spaces, when HTML encoded it will produce nbsp

Leave a Comment