I need to implement a module for exporting html to docx document in PHP. I created a template and set some variables inside. I am replacing these variables to data queried from database. It was working while there have occured the need to add some html tags with style attributes and TOC. I was using str_replace to convert some simple tags like <br/>, <p> and etc, but it is not working if add styling attributes like align and color.
The first question: is there any ready open source systems to convert html tags including its styles to word?
The second question: can I create a TOC after all the replace have been done?
Thank you for your answer.
No comments:
Post a Comment