Forum


Replies: 1   Views: 899
Wrap texts when using modifyinputfields
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 tjchen  · 03-12-2021 - 05:53

For example:
$textfield = "first" . "\n" . "second" . "\n" . "third";
$data = array( 'textfield' => $textfield);
$docx->modifyInputFields($data);
I want the result to be:
first
second
third
but the result will be:
first second third
How can i fix it? Thanks.