static function buildFromString($str, $lowercase=true, $forceTagsClosed=true, $target_charset = self::DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=self::DEFAULT_BR_TEXT, $defaultSpanText=self::DEFAULT_SPAN_TEXT)
    {
        $dom = new Tree(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText);
        if (empty($str) or strlen($str) > self::MAX_FILE_SIZE)
        {
            $dom->clear();
            return false;
        }
        $dom->load($str, $lowercase, $stripRN);
        return $dom;
    }
static function buildFromString($str, $lowercase=true, $forceTagsClosed=true, $target_charset = self::DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=self::DEFAULT_BR_TEXT, $defaultSpanText=self::DEFAULT_SPAN_TEXT)
    {
        $dom = new Tree(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText);
        if (empty($str) or strlen($str) > self::MAX_FILE_SIZE)
        {
            $dom->clear();
            return false;
        }
        $dom->load($str, $lowercase, $stripRN);
        return $dom;
    }
static function buildFromString ( $ str , $ lowercase = true , $ forceTagsClosed = true , $ target_charset = self :: DEFAULT_TARGET_CHARSET , $ stripRN = true , $ defaultBRText = self :: DEFAULT_BR_TEXT , $ defaultSpanText = self :: DEFAULT_SPAN_TEXT ) { $ dom = new Tree ( null , $ lowercase , $ forceTagsClosed , $ target_charset , $ stripRN , $ defaultBRText , $ defaultSpanText ) ; if ( empty ( $ str ) or strlen ( $ str ) > self :: MAX_FILE_SIZE ) { $ dom -> clear ( ) ; return false ; } $ dom -> load ( $ str , $ lowercase , $ stripRN ) ; return $ dom ; }
get html dom from string
@param $str
@param bool $lowercase
@param bool $forceTagsClosed
@param $target_charset
@param bool $stripRN
@param $defaultBRText
@param $defaultSpanText
@return bool|Tree
get html dom from string