You are here

public function OutputRules::cdata in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php \Masterminds\HTML5\Serializer\OutputRules::cdata()

Write a CDATA node.

Instead of returning the result write it to the output stream ($output) that was passed into the constructor.

Parameters

mixed $ele:

Overrides RulesInterface::cdata

File

vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php, line 259
The rules for generating output in the serializer.

Class

OutputRules
Generate the output html5 based on element rules.

Namespace

Masterminds\HTML5\Serializer

Code

public function cdata($ele) {

  // This encodes CDATA.
  $this
    ->wr($ele->ownerDocument
    ->saveXML($ele));
}