Hi Everyone,
I used this arcade expression $feature.Name + TextFormatting.NewLine + "<CLR red = '255'>"+ $feature.Address +"</CLR>"
The issue is that some labels have the red color will others show the whole expression. I am lost on what could be the issue.
Solved! Go to Solution.
The feature name contains special characters (& or <), which causes the formatting to fail. You have to replace those characters with their equivalent character codes (& and <)
replace($feature.Name, "&", "&") + TextFormatting.NewLine + "<CLR red = '255'>"+ $feature.Address +"</CLR>"
The feature name contains special characters (& or <), which causes the formatting to fail. You have to replace those characters with their equivalent character codes (& and <)
replace($feature.Name, "&", "&") + TextFormatting.NewLine + "<CLR red = '255'>"+ $feature.Address +"</CLR>"
Thank you, Ken!! This saved me so much headache. And it makes perfect sense