Using Substitution on Text Field - Appian Expression Editor

I am currently trying to figure out how to use the Substitute() function provided by Appian on a text field. Specifically, I am trying to substitute the "&" with & amp; because the ampersand is causing me issues when I try to save the form with a certain value.

Every combination that I've tried has given me an error that will either prevent me from saving my changes, or causes an error when I try to use the form it's related to. Has anyone used the Expression Editor in Appian before and knows how to use the substitution function with the code below?

We are currently using an older version of Appian (version 7.10).

Also - there is currently no tag available for Appian so I am unable to tag it properly :(

If there is any additional information I can provide to get this solved, please let me know.

  Discussion posts and replies are publicly visible