Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Ampersand in string causing problems in email button


Level 4
I have an application in which the email subject string is constructed out of some field values. Everythign works fine, except that if the string contains an ampersand, the string construction terminates and the emai, subject is truncated. I'd like to put a reoutine in place that changes the ampersand to an "and" in the string; however, the Javascript implementation in Designer 7 doesn't support the replace method. Any ideas on how I can do this in Javascript without the replace method? Thanks!
0 Replies