changed behavior so that empty html tags are auto closed