Can you please tell what would be the proper approach to remove "data-bind" attribute, when (and only when) the binding declared by the attribute gets applied? Basically, I would like to cleanup HTML of a static website generated on the server. I know, I can just go through DOM and do the hand-picked removal, but ideally, it could be done through some kind of middleware (if something like this exists in KO).
Hi guys, hope you're doing well.
Can you please tell what would be the proper approach to remove "data-bind" attribute, when (and only when) the binding declared by the attribute gets applied? Basically, I would like to cleanup HTML of a static website generated on the server. I know, I can just go through DOM and do the hand-picked removal, but ideally, it could be done through some kind of middleware (if something like this exists in KO).
Any help greatly appreciated.