0 votes

for instance name of company is "I & T"
when generating a template with name of company using function "GetInvoiceAddress", the .docx is unreadable
[$RunScript(name="GetInvoiceAddress", file="TemplatesFunctions", FieldName="NAME")]

asked in Errors by (117 points)
edited by

1 Answer

+2 votes

You have to escape the output of course.

up to 11.0: escapeXml
from 11.1+: contextEncodeText

You can optionally consult this small tutorial.

answered by (6.8k points)
Welcome to Efficy Overflow, where you can ask questions and receive answers from other members of the community.
1,166 questions
1,424 answers
1,715 comments
325 users