Dirichlet boundary conditions can prevent blow-up in reaction-diffusion equations and systems