Format content object properly