Forum


Replies: 1   Views: 3701
Bug with apostrophe in replacevariablebytext
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 admin  · 24-11-2014 - 11:26

Hello, We have done some test and we get the right string. When you set the new string value please escape the single quote or set it between doble quotes. For example: $first = "PHP' DocX"; $first = 'PHP\' DocX'; and please try again. What method are you using to replace the placeholder? Regards.