Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images within a table don't working in html (Shared/Html.php) #2094

Closed
adolfocampo opened this issue Jun 10, 2021 · 1 comment
Closed

Images within a table don't working in html (Shared/Html.php) #2094

adolfocampo opened this issue Jun 10, 2021 · 1 comment

Comments

@adolfocampo
Copy link

adolfocampo commented Jun 10, 2021

Trying to convert thml to word2007 with the following code:

<tbody>
<tr>
<td><img src="https://media.gettyimages.com/photos/female-friend-helping-smiling-male-roommate-while-wearing-earring-in-picture-id1307394290?s=2048x2048" alt="" width="200" height="133"></td>
<td></td>
</tr>
</tbody>
</table>';
\PhpOffice\PhpWord\Shared\Html::addHtml($section, $html, false, false);```

But the html is not rendered to docx.
@adolfocampo
Copy link
Author

Solved: The problem is that the img tag isn't closed by />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant