If you are storing any information in a CreateClickAction Property, make sure to special encode your data first before saving. It does not like "<, >, and &" to be in the property.
Example:
Code:EntreeClickActionObject click = output.CreateClickAction();
click["message"] = "Hi, I & Julie like you <:->";
What i did to get around this is I created special methods to encode and decode this information. I reason I created a special one is the use of XMLEncode, HTMLEncode, or URLEncode, resulted in the same error.
Here are the two methods I created.
Code:public string SpecialEncode(string strToEncode)
{
return strToEncode.Replace("&", "#AMP#").Replace("<", "#LT#").Replace(">", "#GT#");
}
public string SpecialDecode(string strToDecode)
{
return strToDecode.Replace("#AMP#", "&").Replace("#LT#", "<").Replace("#GT#", ">");
}
In the end my message is encoded first.
Code:click["message"] = SpecialEncode("Hi, I & Julie like you <:->");
Then when I display it I make sure to decode it first.
Code:output.ErrorString = SpecialDecode(EntreeScope.Properties["message"]);