title: Strip tag from text (in React JS)
body: <p>I have multiple whole html code in variable <em>cleanHTML</em> and i need to strip specific tags from text.</p>
  
  <pre><code>let cleanHTML = document.documentElement.outerHTML
  </code></pre>
  
  <p>this:</p>
  
  <pre><code>&lt;span class="remove-me"&gt;please&lt;/span&gt;
  &lt;span class="remove-me"&gt;me too&lt;/span&gt;
  &lt;span class="remove-me"&gt;and me&lt;/span&gt;
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>please
  me too
  and me
  </code></pre>
  
  <p>I´m trying to do it with:</p>
  
  <pre><code>var list = cleanHTML.getElementsByClassName("remove-me");
  var i;
  for (i = 0; i &lt; list.length; i++) {
    list[i] = list[i].innerHTML;
  }
  </code></pre>
  
  <p>But i´m getting error from React <em>cleanHTML.getElementsByClassName is not a function</em></p>
  
  <p>Any idea how to do it in a way React likes?</p>