public static function getClean($str)
    {
        if (is_object($str) && get_class($str) == 'Xiphe\HTML\core\Tag') {
            $Tag = $str;
            $str = $Tag->content;
        }
        switch (Config::get('cleanMode')) {
        case 'strong':
            $str = self::getStrong($str);
            break;
        case 'basic':
            $str = self::getBasic($str);
            break;
        default:
            return $str;
        }
        if (isset($Tag)) {
            $Tag->content = $str;
        }

        return $str;
    }