Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

ampersand in text

Avatar

Level 9

How do I use an ampersand (&) in a text script?

I cannot use "and" because it is a legal name of a company.

"Company & Company"

1 Accepted Solution

Avatar

Correct answer by
Level 10

Just use the unicode sequence '\u0026' to display the ampersand character.

xfa.host.messageBox("Company \u0026 Company");

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Just use the unicode sequence '\u0026' to display the ampersand character.

xfa.host.messageBox("Company \u0026 Company");