strip_tags

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Strip HTML and PHP tags from a string
<?php strip_tags(string $string, array|string|null $allowed_tags = null): string
<?php         $phpInfoStr = preg_replace(array_keys($replacePairs), array_values($replacePairs), $phpInfoStr);



        $sections = explode('<h2>', strip_tags($phpInfoStr, '<h2><th><td>'));

        unset($sections[0]);



        $phpInfo = [];
<?php     public function readTime($value, $params)

    {

        $words = $this->wordCount(strip_tags($value));



        return ceil($words / Arr::get($params, 0, 200));

    }
<?php             $allowed_tags = array_diff($all_tags, $tags_list);

            $allowed_tag_string = '<'.join('><', $allowed_tags).'>';



            return strip_tags($html, $allowed_tag_string);

        }



        return strip_tags($html);
<?php             return strip_tags($html, $allowed_tag_string);

        }



        return strip_tags($html);

    }



    public static function slug($string, $separator = '-', $language = 'en')