add automatic closing of tags and quoting