You are here

public function OutputRules::processorInstruction in Zircon Profile 8

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

Write a processor instruction.

To learn about processor instructions see \Masterminds\HTML5\InstructionProcessor

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

Parameters

mixed $ele:

Overrides RulesInterface::processorInstruction

File

vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php, line 272
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 processorInstruction($ele) {
  $this
    ->wr('<?')
    ->wr($ele->target)
    ->wr(' ')
    ->wr($ele->data)
    ->wr('?>');
}