You are here

public function DOMTreeBuilder::cdata in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php \Masterminds\HTML5\Parser\DOMTreeBuilder::cdata()

A CDATA section.

Parameters

string $data: The unparsed character data.

Overrides EventHandler::cdata

File

vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php, line 583

Class

DOMTreeBuilder
Create an HTML5 DOM tree from events.

Namespace

Masterminds\HTML5\Parser

Code

public function cdata($data) {
  $node = $this->doc
    ->createCDATASection($data);
  $this->current
    ->appendChild($node);
}