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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -