I am just wondering if I have to worry about encoding the values that get output when I use HTML helpers like Html.DropDownList()
.
If so, how do I encode them? It's easy to do if I were building the drop down manually -- just wrap each value with "Html.Encode()
". However, I don't know how to do this when using HTML helpers.