Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. OutputRules.php

function OutputRules::cdata

Overrides RulesInterface::cdata

File

vendor/masterminds/html5/src/HTML5/Serializer/OutputRules.php, line 273

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));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal