define "safe".
Are we talking long term health concerns or short term?
I think in the long term boxing is definately more dangerous.
In the short term I would say MMA because there is much more potential to take greater damage, have something broken or hit the ground wrong. A sub isn't a sub because it just "hurts" a sub is a sub because if you don't submit you get choked or something gets broken.