Anti depressants while pregnant ??

Samantha
I am going through a LOT with my husband's toxic family and I have been so down and depressed for weeks now, not to mention the crippling anxiety. I just can't go on like this. Has anyone taken anti depressants while pregnant ? I went through a rough patch a few years ago and was on Zoloft and Xanax and it really helped a lot, I just don't want to take anything that could harm my baby. 
If you have hateful comments, please keep them to yourself as you have no idea what I am going through. 
Thank you, ladies. 
Sam