K.D.
My daughter started teething at 3 months, but I successfully breastfed her for 13 months. There were a few times that she bit me (once even drawing blood) but a stern "NO BITING!" and ending the feeding put a quick end to that. Also, you may notice that he "chews" towards the end of the feeding which means he's done, so you should just end the feeding as soon as you notice he's getting distracted, etc.
But if you want to wean, best to do it slowly (for your sake and his). Start by delaying a feeding or skipping it (preferably afternoon) and continue dropping feedings ever few days or so, replacing them with formula. He'll most likely hang onto his bedtime feeding (although my daughter enjoyed her morning feeding best) until last, but you could have your husband/partner give him a bottle and then put him to bed so he learns that milk doesn't always need to come from mom. It took me 2 months to fully wean my daughter.
Good luck!