title: How to split a string by space?
body: <p>I need to split this string by space:</p>
  
  <pre><code>&lt;i&gt;Lorem&lt;/i&gt; 1 &lt;span class="text-danger"&gt;ipsum&lt;/span&gt; dolor sit amet, consectetur adipisicing elit. Animi consequuntur, eos? Error facere maiores minima molestiae obcaecati, quis voluptatum. Aspernatur cumque doloremque ducimus eos explicabo facilis fuga, nulla quos voluptate.
  </code></pre>
  
  <p>The difficulty is that I also have html tags inside.</p>
  
  <p>I tried something like this, but it takes spaces as well</p>
  
  <pre><code>/&lt;(.*?)&gt;(.*?)&lt;(.*?)&gt;|\w*(.*?)(?:\s*?[,?.-])?/g
  </code></pre>
  
  <p>How do I solve this problem?</p>