protected function simple_html_dom::parse in simplehtmldom API 6
Same name and namespace in other branches
- 5.2 simplehtmldom/simple_html_dom.php \simple_html_dom::parse()
- 7 simplehtmldom/simple_html_dom.php \simple_html_dom::parse()
1 call to simple_html_dom::parse()
- simple_html_dom::load in simplehtmldom/
simple_html_dom.php
File
- simplehtmldom/
simple_html_dom.php, line 613
Class
Code
protected function parse() {
if (($s = $this
->copy_until_char('<')) === '') {
return $this
->read_tag();
}
// text
$node = new simple_html_dom_node($this);
++$this->cursor;
$node->_[HDOM_INFO_TEXT] = $s;
$this
->link_nodes($node, false);
return true;
}