node package manager

koco-untrusted-html-binding-handler

Set node html with a value you are not sure is safe.

koco-untrusted-html-binding-handler

Knockout binding handler like html, but for html you don't trust!

Installation

bower install koco-untrusted-html-binding-handler

Usage with KOCO

This is a shared module that is used in many other module. Per convention, add this binding handler to your knockout-binding-handlers.js like so:

define([
  ...
        'bower_components/koco-untrusted-html-binding-handler/src/untrusted-html-binding-handler',
  ...
]

Usage looks like this:

    <span data-bind="untrustedHtml: { text: 'my untrusted&nbsp;fragment', settings: { defaultText: 'my default text' } }"></span>