1099 misc for legal fees

I recieved a settlement that was split for my amount and the amount I'd already paid in legal fees - how do I get credit for the legal fees so that they aren't taxable?