title: Adding data from localStorage to cookie with jQuery
body: <p>I'm trying to add the data from <code>localStorage</code> to the cookie.</p>
  <p>Here is the code:</p>
  <pre><code>let cookie_name = &quot;points_trigger&quot;;
  let cookie_data = localStorage.getItem('content');
  document.cookie = `${cookie_name}=${cookie_data[0].outerHTML}`;
  </code></pre>
  <p>The data from <code>localStorage</code> is an <code>HTML</code> code.</p>
  <p>This code creates a cookie but the content is <code>undefined</code>. And also, I don't have any errors in the console.</p>