title: Remove empty spaces inside <p> tags using BeautifulSoup
body: <p>There are some paragraphs in my string html that look like this:</p>
  
  <pre><code>&lt;p&gt;
      Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  &lt;/p&gt;
  </code></pre>
  
  <p>I want to remove empty spaces inside <code>p</code> tags and turn it into:</p>
  
  <pre><code>&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua&lt;/p&gt;
  </code></pre>
  
  <p>Notice that a <code>p</code> tag like this should leave changed:</p>
  
  <pre><code>&lt;p class="has-media media-640"&gt;&lt;img alt="Lorem ipsum dolor sit amet" height="357" src="http://www.example.com/img/lorem.jpg" width="636"/&gt;&lt;/p&gt;
  </code></pre>
  
  <p>What I want is:</p>
  
  <pre><code>for p in soup.findAll('p'):
      replace p.string with trimmed text
  </code></pre>