static public function parse($text, $builder = null) {
        $tokenizer = new HTML5_Tokenizer($text, $builder);
        $tokenizer->parse();
        return $tokenizer->save();
    }
static public function parse($text, $builder = null) {
        $tokenizer = new HTML5_Tokenizer($text, $builder);
        $tokenizer->parse();
        return $tokenizer->save();
    }
static public function parse ( $ text , $ builder = null ) { $ tokenizer = new HTML5_Tokenizer ( $ text , $ builder ) ; $ tokenizer -> parse ( ) ; return $ tokenizer -> save ( ) ; }
Parses a full HTML document.
@param $text | HTML text to parse
@param $builder | Custom builder implementation
@return DOMDocument|DOMNodeList Parsed HTML as DOMDocument
Parses a full HTML document .