Arcade AGOL Expressions – How to Create a Text Field with Quotes Using Arcade and Attribute Expressions in AGOL

arcadearcgis-onlinefield-calculator

I am working on creating a Attribute Expression that would display HTML with quotes in the field. I tried putting double quotes for the inner quotes, but I keep getting "Parse Error: Unexpected String". Here is how I am writing out the expression which I know works with Python.

"<a href=tel:""PHONE NUMBER"">PHONE NUMBER</a>"

What it should produce:

<a href=tel:"PHONE NUMBER">PHONE NUMBER</a>

Does anyone know how to print out quotes within a text field using Attribute Expression?

enter image description here

Best Answer

You could try using single quotes for the entire string with double quotes in the middle:

'<a href="sample text">sample text</a>'