Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 31 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31 Rev 262
Line 29... Line 29...
29
        // i+0 => some text
29
        // i+0 => some text
30
        // i+1 => '/' for closing markups, nothing otherwise
30
        // i+1 => '/' for closing markups, nothing otherwise
31
        // i+2 => the markup it self, without the '<' '>'
31
        // i+2 => the markup it self, without the '<' '>'
32
        //
32
        //
33
        // note that i+2 might end with a '/' indicating an auto-closing markup
33
        // note that i+2 might end with a '/' indicating an auto-closing markup
34
        $this->matches = preg_split('#<(/?)' . $namespace . '([^>]*)>#', $html, -1, PREG_SPLIT_DELIM_CAPTURE);
34
        $this->matches = preg_explode('#<(/?)' . $namespace . '([^>]*)>#', $html, -1, PREG_SPLIT_DELIM_CAPTURE);
Line 35... Line 35...
35
        
35
        
36
        // the flat representation is now ready, we can create our tree
36
        // the flat representation is now ready, we can create our tree
Line 37... Line 37...
37
        $tree = $this->buildTree();
37
        $tree = $this->buildTree();