You are here

protected function simple_html_dom::parse in simplehtmldom API 5.2

Same name and namespace in other branches
  1. 6 simplehtmldom/simple_html_dom.php \simple_html_dom::parse()
  2. 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

simple_html_dom

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;
}