Before revision: House arrest is an alternative to being in a prison while awaiting trial or after sentencing.
After revision: House arrest is an alternative to being in a jail while awaiting trial or after sentencing.