Changed: remove tag pairs with no content and no text consumed