How to convert the html tag string to a word document using PHPWord?

后端 未结 2 2016
孤街浪徒
孤街浪徒 2021-01-11 12:34

I have a HTML string and I want to print in the word document in same format and style as in the HTML. I am using the PHPWord

When I give my HTML string say:

2条回答
  •  不要未来只要你来
    2021-01-11 12:57

    I agree with the answer of @Tomek, but you have more html tags possible.

    The full list is here :
    https://github.com/PHPOffice/PHPWord/blob/4a530d1d97b064b87d9e2a1cc64cab996246569c/src/PhpWord/Shared/Html.php#L116

    Don't try to do complicated thinks with table or style. It just didn't work.

提交回复
热议问题