Changes tags to YAML list