getTextContent($token[1]); if ($textContent !== false) { // Turn this token into a literal $token = ['literal', $textContent]; } } return $token; } ); } /** * {@inheritdoc} */ protected function normalizeElement(DOMElement $element) { $textContent = $this->getTextContent($element->getAttribute('select')); if ($textContent !== false) { $element->parentNode->replaceChild($this->createText($textContent), $element); } } }