escape input and format notification