Make sure special characters in the text are proper HTML entities