static function stripStyles($string)
    {
        $string = preg_replace('/(?<!\$)((?:\$\$)*)\$[^$0-9a-hlp]/iu', '$1', $string);
        $string = self::stripLinks($string);
        $string = self::stripColors($string);
        return $string;
    }
static function stripStyles($string)
    {
        $string = preg_replace('/(?<!\$)((?:\$\$)*)\$[^$0-9a-hlp]/iu', '$1', $string);
        $string = self::stripLinks($string);
        $string = self::stripColors($string);
        return $string;
    }
static function stripStyles ( $ string ) { $ string = preg_replace ( '/(?<!\$)((?:\$\$)*)\$[^$0-9a-hlp]/iu' , '$1' , $ string ) ; $ string = self :: stripLinks ( $ string ) ; $ string = self :: stripColors ( $ string ) ; return $ string ; }
Removes all styles
Removes all styles