sanitize the content and title