title: BS4: Getting text in tag
body: <p>I'm using beautiful soup. There is a tag like this:</p>
  
  <p><code>&lt;li&gt;&lt;a href="example"&gt; s.r.o., &lt;small&gt;small&lt;/small&gt;&lt;/a&gt;&lt;/li&gt;</code> </p>
  
  <p>I want to get the text within the anchor <code>&lt;a&gt;</code> tag only, without any from the <code>&lt;small&gt;</code> tag in the output; i.e. " <em><code>s.r.o.,</code></em> "</p>
  
  <p>I tried <code>find('li').text[0]</code> but it does not work.</p>
  
  <p>Is there a command in BS4 which can do that? </p>