Programmatically apply Knockout bindings to specific tags within a text block
问题 I have a block of html markup that I'd like to databind to a div using Knockout JS. This is simple enough with the knockout html binding. What I'd like to do is conditionally bind child elements within that html markup, based on their class. These elements can appear anywhere within the html markup, as they are inline elements (like span , a tags, etc). The purpose of this is to databind click events to specific words or phrases within this text block, so that I can call a function (in this