I am trying to create a dropdown list with html encoded options in knockout js using options binding.
How can i decode the text returned from the function binded to the optionsText binding.
<select data-bind="options: items, optionsText: function(item){ return "decoded text"}"></select>
In general, I need a function that take a encoded html string and returns the decoded text.
i.e. the function takes something like
blah blah balh <sup>TM</sup>
and return
blah blah blah ™