title: Removing new line '\n' from the output of python BeautifulSoup
body: <p>I am using python Beautiful soup to get the contents of:</p>
  
  <pre><code>&lt;div class="path"&gt;
      &lt;a href="#"&gt; abc&lt;/a&gt;
      &lt;a href="#"&gt; def&lt;/a&gt;
      &lt;a href="#"&gt; ghi&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My code is as follows:</p>
  
  <pre><code>html_doc="""&lt;div class="path"&gt;
      &lt;a href="#"&gt; abc&lt;/a&gt;
      &lt;a href="#"&gt; def&lt;/a&gt;
      &lt;a href="#"&gt; ghi&lt;/a&gt;
  &lt;/div&gt;"""
  from bs4 import BeautifulSoup
  soup = BeautifulSoup(html_doc)
  
  path = soup.find('div',attrs={'class':'path'})
  breadcrum = path.findAll(text=True)
  
  print breadcrum
  </code></pre>
  
  <p>The output is as follow,</p>
  
  <pre><code>[u'\n', u'abc', u'\n', u'def', u'\n', u'ghi',u'\n']
  </code></pre>
  
  <p>How can I only get the result in this form: <code>abc,def,ghi</code> as a single string?</p>
  
  <p>Also I want to know about the output so obtained.</p>