cleanup
Process all tags in each line.