title: JavaScript RegExr. Parsing html into text
body: <p>I would like to convert a html code into text by using regexr.
  I am a beginner and I don't really know how to do it with split() and replace()...</p>
  
  <p>For example:</p>
  
  <pre><code>const = myArtcle {
  article: &lt;p class="some-style"&gt;Some text with 094blabla.&lt;/p&gt;
  &lt;img src="#" /&gt;&lt;p class="style"&gt; etc...&lt;/p&gt;.
  }
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>const textArticle = myArticle.article;
  
  const deleteHTML = new RegExp(/\&lt;(.*?)\&gt;/);
  
  const parsingText = () =&gt; {
      textArticle.split(deleteHTML, '');
      return (textArticle);
  }
  </code></pre>
  
  <p>And I would like to have a parahraph:</p>
  
  <pre><code>Some text with 094blabla.  etc...
  </code></pre>
  
  <p>instead of the html tags with the paragraph (so I want to remove all the html tags and only get the paragraph)</p>
  
  <p>I would like to do it with <code>RegExr</code> and function JavaScript only.</p>