Forum


Replies: 3   Views: 86
Space characters removed in createdocxfromtemplate process...

Posted by admin  · 04-12-2024 - 17:23

Hello,

Enabling the parseMode option is recommended when the symbols to wrap placeholders are not ${ } or use multiple characters (symbols) that are included in the template as regular content.
MS Word can break words in several tags, so phpdocx needs to repair them to handle placeholder replacements correctly.

If you don't enable the parseMode option, the whole XML content is parsed at once to clean placeholders. The parseMode option parses and analyzes paragraphs individually to get the placeholders.

Regards.