Forum


Replies: 5   Views: 4013
Lib throws exception when including variables containing & and parselinebreaks set to true
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 jdespatis  · 15-07-2014 - 15:59

Ok thanks, As I've no problem with & symbol when I use the default behavior (parseLineBreaks == false), then I need to protect some symbols only when parseLineBreaks is set to true right ? And then 2 questions: * which php function should I use to protect those symbols when parseLineBreaks is activated ? htmlspecialchars, another function ? * why not performing automatically this character convertion in the lib ? as the replaceVariableByText only accepts text as input, no Word fragment or so on, no?