A jet engine may not contain a seversevere explosion (for what everwhatever reason) but there are various mandated things that are put in place to help protect the airframe.
- The engines are generally mounted such that they shear off cleanly and away from the airframe.
- There are a few AC's like this one and this one that discuss how to deal with and comply with various safety regulations around unconfined blade failure and unconfined rotor failure. As, as well as this one about pylon loading.
- Jets are generally produced to a very high standard to prevent issues from happening in the first place which is in a way a safteysafety consideration.