An "incredibly dangerous" man from Bradford has been jailed for slashing his ex-partner's ankles.