title: Removing spaces and newlines between tags in html (aka unformatting) in python
body: <p>An example:</p>
  
  <pre><code>&lt;p&gt; Hello&lt;/p&gt;
  &lt;div&gt;hgello&lt;/div&gt;
  &lt;pre&gt;
     code
      code
  &lt;pre&gt;
  </code></pre>
  
  <p>turns in something like:</p>
  
  <pre><code>&lt;p&gt; Hello&lt;/p&gt;&lt;div&gt;hgello&lt;/div&gt;&lt;pre&gt;
      code
       code
  &lt;pre&gt;
  </code></pre>
  
  <p>How to do this in python? I make also intensive use of &lt; pre> tags so substituting all '\n' with '' is not an option.</p>
  
  <p>What's the best way to do that?</p>