Richard Korebrits
Richard Korebrits
I'm also trying to catch network failures on `v2`, but it doesn't seem to `error` when the script can't load
@mgufrone Please accept the PR as your package currently breaks on PHP 7.1/7.2
Unfortunately I can't go around the TemplateProcessor, the documents I'm working with are very custom and it's not an option to build them from scratch. When documents are compiled, the...
Thanks @jeffsrepoaccount However I'm not sure if I'm able to use that. We have a bunch of templates, with each multiple repeating blocks containing HTML from TinyMCE (only bold,italic and...
Hi @keepthinking You will need to do something along the lines of: \PhpOffice\PhpWord\Settings::setOutputEscapingEnabled(false); $this->_template->setValue($field, $html, $limit); \PhpOffice\PhpWord\Settings::setOutputEscapingEnabled(true); That library just converts HTML to OOXML, it's not built only for PhpWord...
@keepthinking Yeah you need to combine it with that library of mine, they are both separate tools. $parser = new \HTMLtoOpenXML\Parser(); \PhpOffice\PhpWord\Settings::setOutputEscapingEnabled(false); $ooXml = $parser->fromHTML('Test'); $phpWord->setValue($variable, $ooXml); \PhpOffice\PhpWord\Settings::setOutputEscapingEnabled(true); > Did...
Send some of your code and the HTML you are trying to send in? Must be missing something obvious.. are you sure it doesn't break without adding in the HTML?
Okay, so I downloaded your script. It seems like you can't combine injected HTML with plain text in word on the same line. Try it with this file: [Sample_00_3_html-template.docx](https://github.com/PHPOffice/PHPWord/files/2554543/Sample_00_3_html-template.docx) I...
Did that work @keepthinking ?
@beard7 @keepthinking Numbering is a whole new story. The styling for the numbering is set in `numbering.xml`. It is not possible to set the numbering anywhere else. What I used...