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 (120 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.9k points)
Welcome to Efficy Overflow, where you can ask questions and receive answers from other members of the community.
1,173 questions
1,432 answers
1,726 comments
325 users