So the data is already URI encoded? If so, you'll need to write a custom binding handler to decode the data before displaying it. Here's a quick-and-dirty example that should get you started. It grabs the value of the viremodel item bound (your URI-encoded data), decrypts it and then sends it to knockouts "text" binding to use it as normal:
ko.bindingHandlers.decode = {
update: function(element, valueAccessor, allBindings, viewModel, bindingContext) {
var value = valueAccessor();
var data = ko.unwrap(value);
ko.bindingHandlers.text.update(element, function() { return decodeURIComponent(data); }, allBindings, viewModel, bindingContext);
}
};
Instead of "text" binding, use this one (decode). Example:
<div data-bind="decode: myURI"></div>