title: Remove all Tags with inner Content
body: <p>I want to Remove all Tags with inner Content.</p>
  
  <p>I'm using the following function.</p>
  
  <pre><code>function strip_tags_content($text, $tags = '', $invert = FALSE) {
  
      preg_match_all('/&lt;(.+?)[\s]*\/?[\s]*&gt;/si', trim($tags), $tags);
      $tags = array_unique($tags[1]);
  
      if (is_array($tags) AND count($tags) &gt; 0) {
          if ($invert == FALSE) {
              return preg_replace('@&lt;(?!(?:' . implode('|', $tags) . ')\b)(\w+)\b.*?&gt;.*?&lt;/\1&gt;@si', '', $text);
          } else {
              return preg_replace('@&lt;(' . implode('|', $tags) . ')\b.*?&gt;.*?&lt;/\1&gt;@si', '', $text);
          }
      } elseif ($invert == FALSE) {
          return preg_replace('@&lt;(\w+)\b.*?&gt;.*?&lt;/\1&gt;@si', '', $text);
      }
      return $text;
  }
  </code></pre>
  
  <p>But i am still getting the following result.</p>
  
  <pre><code>&lt;p&gt;&lt;span style="color: rgb(38, 38, 38); font-family: arial, helvetica, sans-serif; fon...
  </code></pre>
  
  <p>I want all the html tags to be removed.</p>
  
  <p><code>p, span etc.</code> Where am I wrong?</p>