title: How do I insert HTML into Mongodb?
body: <p>I keep getting kicked out of the shell when I try to paste in an HTML text file. How can this be done? Do I first need to use some javascript to encode it or something?</p>
  
  <p>Example:</p>
  
  <pre><code>db.test.insert({x:"&lt;div id='product-description'&gt;&lt;p&gt;Who hasn’t wished for a mini-Roomba to    handle the arduous task of cleaning their iPhone screen? Now your dreams have come true!&lt;/p&gt;  &lt;p&gt;See the Takara web page for a &lt;a href='http://www.takaratomy.co.jp/products/automee/'  title='automee s' target='_blank'&gt;demo video.&lt;/a&gt;&lt;/p&gt;
  &lt;p&gt;&lt;strong&gt;Colors: &lt;/strong&gt; White, Red, Orange and Blue&lt;br&gt;
  Runs on a single AA battery.&lt;/p&gt;
  &lt;p&gt;1,575 yen&lt;/p&gt;&lt;!-- end #product-description --&gt;&lt;/div&gt;"})
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I put only single quotes inside my html and wrapped the whole thing in double-quotes, but still no good. shell error:</p>
  
  <pre><code>&gt; j = ({z:"&lt;div id='product-description'&gt;&lt;p&gt;Who hasn
  ---
  Unicode text could not be correctly displayed.
  Please change your console font to a Unicode font (e.g. Lucida Console).
  ---
  
  â€™
  bye
  </code></pre>