sanitize caption