get output as array of tags