title: How do I extract texts only without html markup?
body: <p>I am trying to extract the <code>texts</code> without <code>html</code> markup by using <code>innerText</code>.</p>
  
  <pre><code>//table is a html table structure 
  var cells = table.innerText.trim()
  </code></pre>
  
  <p>The <code>cells</code> data is like the following:</p>
  
  <pre><code>1st cell   
  
  
    2nd cell
  
  
    3rd cell
  
  
    4th cell
  
  
    last cell
  </code></pre>
  
  <p>How do I make every cell data into <code>array</code>?</p>
  
  <p>I have tried </p>
  
  <pre><code>cells = cells.split(' '); 
  </code></pre>
  
  <p>but it doesn't work.</p>
  
  <p>Any help here? Thanks a lot!</p>