Forum


Replies: 2   Views: 1198
Problems with character & in bulkprocessing
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 michael.stubenvoll  · 17-03-2021 - 09:32

Hello,
i just encounterd a problem in the bulkProcessing method replaceText:
When i execute the following function call, only int the last generated document $PLACEHOLDER$ will be replaced with the correct "test test" value. All the other $PLACEHOLDER$ will be just removed but not replaced with the containing value. This happens when the option "parseLineBreaks" is true or false.

$bulk->replaceText([["PLACEHOLDER" => "test & test"], ["PLACEHOLDER" => "test&"], ["PLACEHOLDER" => "&"], ["PLACEHOLDER" => "test test"]]);

I´m am using phpdocx version 11.
Greetings
Michael