title: How to get all the tags (with content) under a certain class with BeautifulSoup?
body: <p>I have a class in my soup element that is the description of a unit.</p>
  <pre><code>&lt;div class=&quot;ats-description&quot;&gt;
   &lt;p&gt;Here is a paragraph&lt;/p&gt;
   &lt;div&gt;inner div&lt;/div&gt;
   &lt;div&gt;Another div&lt;/div&gt;
   &lt;ul&gt;
      &lt;li&gt;Item1&lt;/li&gt;
      &lt;li&gt;Item2&lt;/li&gt;
      &lt;li&gt;Item3&lt;/li&gt;
   &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  <p>I can easily grab this part with <code>soup.select(&quot;.ats-description&quot;)[0]</code>.
  Now I want to remove <code>&lt;div class=&quot;ats-description&quot;&gt;</code>, only to keep all the inner tags (to retain text structure). How to do it?</p>
  <p><code>soup.select(&quot;.ats-description&quot;)[0].getText()</code> gives me all the texts within, like this:</p>
  <pre><code>'\nHere is a paragraph\ninner div\nAnother div\n\nItem1\nItem2\nItem3\n\n\n'
  </code></pre>
  <p>But removes all the inner tags, so it's just unstructured text. I want to keep the tags as well.</p>