A
A
Al3x4kov2017-01-14 19:13:01
Yii
Al3x4kov, 2017-01-14 19:13:01

How to convert a piece of html code to doc?

Friends, a non-standard task arose.
There is a piece of code on the page:

$some_code = " <h1>Заголовок</h1> <table> ... </table>"

It is necessary to convert this piece of code into doc by clicking on the button and pull it off the site.
In other words, an html report is generated on the site, it needs to be converted to doc and sent to the end user.
Already all izlazil on the Internet. Has anyone done this, please help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2017-01-14
@Al3x4kov

https://github.com/PHPOffice/PHPWord

D
Dmitry, 2017-01-14
@slo_nik

Good evening.
Here 's how one of the many options.
Although the answer to your question is easily found in the google.com search engine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question