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.
I am having issues in saving a clients address (i am retrieving from database) in a contract word format generating it dynamically for different clients. The problem i am facing is the a client address may have some " 's " in its address or name but its getting saved on the word document as " King's Close 62 Huntly Street United Kingdom " where as the original address is " King's Close 62 Huntly Street United Kingdom "
i call this $docx->replaceVariableByText($variables);
function where variables represent an array which is to be populated into the word document.
The apostrophes is getting encoded into its character and i can't find any solutions out. Kindly help me out.
Hello,
Please try escaping the string using the addslashes function.
Regards.