Forum


Replies: 4   Views: 3609
Problem with character '&' generating docx (free version)
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by area51  · 11-04-2013 - 12:13

Hi,

This is also a problem with the PRO version.
Having ampersand within any variable will crash the document beyond usability.
I've solved the issue by replacing the ampersand with & before calling addTemplateVariable.
IMHO all XML reserved characters will crash the document like < or >.

Looking forward for a small update to resolve the issue.

Kind regards,
Gregor Streng