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 (124 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 (7.4k points)
Welcome to Efficy Overflow, where you can ask questions and receive answers from other members of the community.
1,248 questions
1,518 answers
328 users