Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • With a caveat that if an element is short enough to become empty, some of these solutions don't make it empty or remove the empty element. Commented Jan 7, 2023 at 17:15
  • @Gilles'SO-stopbeingevil', see the (use the variants with [@] and quoted if you want to preserve empty elements). note Commented Jan 7, 2023 at 17:15