asp.net mvc - Allow HTML in Html.ListBoxFor -
how can use html within @html.listboxfor(i => i.ids, i.items) format each list item separately?
the text property of selectlistitem has text. have prepend icon new selectlistitem { text = "<i class \"fa fa-fw fa-lg fa-user\"></i> text" }.
but asp.net mvc escapes me string always. there implementation of helper method allows raw strings?
Comments
Post a Comment