Set content type for TextResult.