PHPOffice / PHPWord

A pure PHP library for reading and writing word processing documents
https://phpoffice.github.io/PHPWord/
Other
7.22k stars 2.69k forks source link

HTML in templates #1490

Open keepthinking opened 5 years ago

keepthinking commented 5 years ago

Hi community,

I am new here so thanks in advance for any help.

PHPWord is fantastic. For my projects, the Templates are the best way to go, although I am struggling with some of its limitations. Specifically, I'd like to has setValue accept and convert HTML, similarly to https://www.phpdocx.com/api-documentation/templates/replace-variable-html-Word-document

I searched this forum and the wider internet, but could not find anything.

Does anyone know if it's possible?

Best, Cristiano

Farshadi73 commented 5 years ago

I have same problem, need to parse html content and use that as variable ?? any solution?