title: removing tags for a string with recursion
body: <p>I have the following function which should remove tags from an input string.</p>
  
  <p>example in:</p>
  
  <pre><code>'&lt;strong&gt;hello &lt;em&gt;my name &lt;strong&gt;is&lt;/strong&gt; &lt;/em&gt;&lt;/strong&gt;'
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>'hello my name is'
  </code></pre>
  
  <p>Currently I have this code, but not sure how to make it work with recursion.</p>
  
  <hr>
  
  <pre><code>const clean= (str) =&gt; {
      const tags = ['&lt;strong&gt;', '&lt;/strong&gt;', '&lt;em&gt;', '&lt;/em&gt;', '&lt;del&gt;', '&lt;/del&gt;']
      let strSanited = ''
      tags.forEach(tag =&gt; {
          if (str.includes(tag)) {
              strSanited = str.replace(tag, '')
          }else{
              // recursion here??
          }
      })
  }
  
  clean('&lt;strong&gt;hello &lt;em&gt;my name &lt;strong&gt;is&lt;/strong&gt; &lt;/em&gt;&lt;/strong&gt;')
  </code></pre>