title: Jsoup - Remove all children from an element
body: <p>I have an element as below. When I apply .empty() method on the element it is removing the text &quot;Name&quot;. Is there any other way to remove all child elements blindly from an element except its text ? I know the below example don't have any child elements.</p>
  <pre><code>&lt;label class=&quot;field__label&quot; for=&quot;1&quot;&gt;Name&lt;/label&gt;
  </code></pre>