But as soon as you leave you are free to do whatever you want, and the current employer also benefits greatly from the knowledge you gained at your previous jobs (which might be a large part of the reason they hired you in the first place). They shouldn't be able to claim ownership to the knowledge that's in your head.