Forum


Replies: 1   Views: 3390
Replace « with blank
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 krishna shah  · 13-05-2016 - 11:14

Hello sir, 

I am using phpdocx-pro version right now. I have word document with the merge fields variables. When I am trying to replace it, it works fine but didn't remove « » before and after variable.

Template variable: «$Test1$»

replaceVariableByText : array('Test1',replacementText)

It replaced with «replacementText»

How can I remove that symbol after variable replacement?

Thank you in advance.

Posted by admin  · 13-05-2016 - 13:57

Hello,

Phpdocx doesn't work with merge fields but its own template system. We recommend you to create the template again using the supported placeholder symbol.

For more information please check the documentation available on:

http://www.phpdocx.com/documentation/practical

Regards.