JavaScript API: setTemplateSymbols

setTemplateSymbols

PREMIUM TRIAL / ADVANCED

Sets template symbols.

Note

You are reading the JavaScript API documentation. For the PHP API method please go to setTemplateSymbol.

Description
setTemplateSymbols (templateSymbolStart: string, templateSymbolEnd?: string): this

By default phpdocx template variables have to be wrapped by dollar symbols ($).

The character or symbol used to wrap template variables may be:

  • The same at the beginning and the end: $VAR$, |VAR|, #VAR#...
  • Different at the beginning and the end: ${VAR}, #{VAR}, [[VAR]], «VAR»...

Code samples

Example #1

Release notes
  • phpdocx 15.0:
    • new method.