title: Storing a javascript object in HTML5 local storage
body: <p>I want to store a JavaScript object in HTML5 local storage.</p>
  
  <pre><code>sessionStorage.setItem("localObj",this);
  </code></pre>
  
  <p>I am using the above statement within a function.The object contains HTML tags.
  I can neither convert it to a string nor to a JSON.
  How do i proceed with this?</p>