title: How can I insert a new tag into a BeautifulSoup object?
body: <p>Trying to get my head around html construction with BS. </p>
  
  <p>I'm trying to insert a new tag:</p>
  
  <pre><code>self.new_soup.body.insert(3, """&lt;div id="file_history"&gt;&lt;/div&gt;""")   
  </code></pre>
  
  <p>when I check the result, I get:</p>
  
  <pre><code>&amp;lt;div id="file_histor"y&amp;gt;&amp;lt;/div&amp;gt;
  </code></pre>
  
  <p>So I'm inserting a string that being sanitised for websafe html.. </p>
  
  <p>What I expect to see is:</p>
  
  <pre><code>&lt;div id="file_history"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How do I insert a new <code>div</code> tag in position 3 with the id <code>file_history</code>?</p>