title: innerText not preserving line breaks
body: <p>I am trying to remove HTML tags from a string, but I want to remove line breaks. The code below doesn't work, and so far, I haven't found a regex solutions that works.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let input = "First&lt;br&gt;Second"
  let cleaned = document.createElement("pre");
  cleaned.innerHTML = input;
  let output = cleaned.innerText;
  console.log(output);</code></pre>
  </div>
  </div>
  </p>
  
  <p>What I want: "First\nSecond"</p>
  
  <p>What it returns: "FirstSecond"</p>
  
  <p>How do I fix this?</p>