XML::Twig News: New name for an old method: unwrap
Chris Burbridge suggested that the erase method be aliased to unwrap, to spare others missing it and re-writing it, as he did.
This is now in the development version.
In case you had missed it, erase / unwrap removes an element, replacing it by all of its children, as if its start and end tags had been erased, or the element unwrapped and its content left in its place. Hence the names.
[Add Comment]