Well first of all mantises usually don't eat the whole spider. Whenever I feed my mantis a spider it usually eats the legs only. Since the venom is not contained in the legs the mantis can eat them. Other parts of the spider that do not contain venom could be eaten as well. I have read in a book before that a mantis when eating a spider, such as a black widow, it will only eat the legs because of venom. Basically, mantises are not immune to venom they just eat parts of the spider that does not contain it.