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;
    }
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;
    }
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 ; }
Cleans up the given content

@param mixed $str string to be cleaned or Xiphe\HTML\core\Tag with content

@return string the cleaned string.
Cleans up the given content