removeChilds() public static method

public static removeChilds ( DOMNode $ref )
$ref DOMNode
Beispiel #1
0
 public function visit(\DOMAttr $att, Compiler $context)
 {
     $node = $att->ownerElement;
     DOMHelper::removeChilds($node);
     $pi = $context->createPrintNode(html_entity_decode($att->value));
     $node->appendChild($pi);
     $node->removeAttributeNode($att);
 }