You are here

protected function simple_html_dom::as_text_node in simplehtmldom API 7

Same name and namespace in other branches
  1. 5.2 simplehtmldom/simple_html_dom.php \simple_html_dom::as_text_node()
  2. 6 simplehtmldom/simple_html_dom.php \simple_html_dom::as_text_node()
1 call to simple_html_dom::as_text_node()
simple_html_dom::read_tag in simplehtmldom/simple_html_dom.php

File

simplehtmldom/simple_html_dom.php, line 853

Class

simple_html_dom

Code

protected function as_text_node($tag) {
  $node = new simple_html_dom_node($this);
  ++$this->cursor;
  $node->_[HDOM_INFO_TEXT] = '</' . $tag . '>';
  $this
    ->link_nodes($node, false);
  $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null;

  // next
  return true;
}