Skip to content

Commit 06332af

Browse files
committed
Add arg innerXML support
1 parent 0b0aafb commit 06332af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Engine.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,11 @@ public function getElementArgs(DOMElement $element): ArgumentArray
368368
}
369369

370370
// get value
371-
$value = $child_node->nodeValue;
371+
$innerHTML = '';
372+
foreach ($child_node->childNodes as $child) {
373+
$innerHTML .= $element->ownerDocument->saveXML($child);
374+
}
375+
$value = $innerHTML;
372376

373377
// get type
374378
$type = $child_node->getAttribute('type') ?? 'string';

0 commit comments

Comments
 (0)