Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
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");