koco-untrusted-html-binding-handler
v1.5.4
Published
Set node html with a value you are not sure is safe.
Downloads
5
Maintainers
Keywords
Readme
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 fragment', settings: { defaultText: 'my default text' } }"></span>