function RulesInterface::element
Write an element.
Instead of returning the result write it to the output stream ($output) that was passed into the constructor.
Parameters
mixed $ele:
1 method overrides RulesInterface::element()
- OutputRules::element in vendor/
masterminds/ html5/ src/ HTML5/ Serializer/ OutputRules.php - Write an element.
File
-
vendor/
masterminds/ html5/ src/ HTML5/ Serializer/ RulesInterface.php, line 56
Class
- RulesInterface
- To create a new rule set for writing output the RulesInterface needs to be implemented. The resulting class can be specified in the options with the key of rules.
Namespace
Masterminds\HTML5\SerializerCode
public function element($ele);