Added function for sanitizing email content