This Ruby code using Nokogiri
doc.xpath("//tbody").remove
removes the children of the <tbody> (as well as the <tbody> themselves). I only want to remove all <tbody> tags from the document, leaving their children in place. How can I achieve this?
prints