That is well scary !!!
These filters are a right pain. With older vehicles you often need one to stop the dirt getting into your carbs.
If you fit it after the pump, like they always used to back in the day, then they are in the engine bay and will squirt petrol if they break whilst the engine is running. However, once the engine is stopped the leakage rate becomes very small or none depending on how good your pump is.
If you fit it before the pump you can get it out the engine compartment too but if it fails the leak will continue unabated.
Reason I am posting is because a van burnt out locally recently. The filter was under the tank. It or the pipes to it failed and when it caught fire there was no way to stop the petrol flowing.
I suppose one could fit a cut out solenoid but then you have still more pipe connections and another electrical component that could fail and cause trouble.
Wouldn't it be nice if we could have a filter inside the fuel tank.