title: Automatically trim whitespace from all observable values
body: <p>I have a ViewModel in Knockout that is derived mainly from the mapping plugin (ie, dynamically). This works fine. However, now my client wants me to make sure that all inputs have whitespace trimmed off before submitting to the server. Obviously, the trimming code is very simple, but being relatively new to Knockout, I'm not sure exactly where to put this code. I read about <a href="http://knockoutjs.com/documentation/extenders.html" rel="noreferrer">extenders</a>, but that seems pretty verbose and repetitive to go back and add that to each observable. Plus I'm not even sure I can do that to dynamically generated observables (a la, the mapping plugin).</p>
  
  <p><strong>Is there any central mechanism I can extend/override where I can inject some trimming code every time an observable changes?</strong> Basically I'm trying to avoid hours spent going through all of our forms and adding special binding syntax in the HTML if I don't have to.</p>
  
  <p>Thanks.</p>