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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -