Forum


Replies: 1   Views: 3715
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 rushfordk  · 20-11-2014 - 17:01

i try to replace text in my document by LES PRODUITS D'ALUMINIUM CBC INC when i open my document, i got LES PRODUITS D'ALUMINIUM CBC INC why?

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.