Forum


Replies: 4   Views: 1553
Escape single template symbol
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 admin  · 30-09-2020 - 10:11

Hello,

Sorry but we are not sure if we understand your question correctly. Do you need to add the template symbol to the template before working with phpdocx or using template methods?

If the template symbol is added as regular content in the template in the same paragraph that includes placeholders, we recommend using other symbol to wrap placeholders (https://www.phpdocx.com/api-documentation/templates/set-Word-template-placeholder-variable-symbol). The next version of phpdocx (there's no release date yet) will include support for ${ } syntax and others to wrap placeholders.

You can insert $ using template methods without escaping it.

Regards.