Open charmoller opened 5 years ago
I got the same issue. Perhaps the information below is useful for a solution.
Additional information: The image get skipped while parsing the nodes. (File: PHPWord/Shared/Html.php).
The p
is parsed and while parsing it updated the $element to an instance of the AbstractContainer
. After the a
element is being parsed it notice in the parseChildNodes()
that $element is an instance of AbstractContainer
. The image is skipped which results in an empty file because no value is available within the p nor a element.
Hope it helps.
Is there any workaround for this?
I have the same issue could you resolve it
This is:
Expected Behavior
When converting HTML using Html::addHtml() image links (image nested instead an anchor tag) the resulting Word document should display the image with a link to it.
Current Behavior
When converting HTML using Html::addHtml() image links (image nested instead an anchor tag) aren't working correctly. The resulting Word document is not displaying the image at all.
How to Reproduce
Please provide a code sample that reproduces the issue.
Context