PHPWord
PHPWord copied to clipboard
[BUGFIX] Ensure nested `w:sdt -> w:sdtContent` node parsing for Document
Nodes can be nested or directly provided for the document structure.
Until now, the sdt->sdtContent wrapping have not been respected.
This change moves the node parsing for a document to a dedicated method and make it recursivly callable to unnest the wrapped node.