title: how to print only text beautifulsoup
body: <p>I am trying to learn how beautifulsoup works in order to create an application.</p>
  
  <p>I am able to find and print all elements with .find_all() however they print the html tags as well. How can I print ONLY the text within these tags.</p>
  
  <p>This is what I have:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  
  """&lt;html&gt;
  &lt;p&gt;1&lt;/p&gt;
  &lt;p&gt;2&lt;/p&gt;
  &lt;p&gt;3&lt;/p&gt;
  """
  
  soup = BeautifulSoup(open('index.html'), "html.parser")
  i = soup.find_all('p')
  print i
  </code></pre>