title: Jquery - trim inner HTML?
body: <p>I somehow need to <code>trim()</code> the innerHTML of my content... so I have something like this:</p>
  
  <pre><code>&lt;div&gt;
       &lt;b&gt;test&lt;/b&gt;
  
  123 lol
            &lt;/div&gt;
  </code></pre>
  
  <p>I basically want to rid of the white space that is ONLY between <code>&lt;div&gt;</code> and the next <strong>character</strong>, and the white space just before the closing <code>&lt;/div&gt;</code>.</p>
  
  <p>So the outcome would be:</p>
  
  <pre><code>&lt;div&gt;&lt;b&gt;test&lt;/b&gt;
  
  123 lol&lt;/div&gt;
  </code></pre>