title: How to store everything line by line in JavaScript local storage?
body: <p>I have this html::</p>
  
  <pre><code>&lt;div&gt;
  &lt;h1&gt;This is heading&lt;/h1&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to store this  html in local storage as it is.</p>
  
  <p>But if I try to store this html in localstorage as it is, It stores something like this::</p>
  
  <pre><code>&lt;div&gt;&lt;h1&gt;This is heading&lt;/h1&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Is there any solution??</p>