Turns a text input into a tag input.